vs code 启动vue项目


先安装node.js,在安装cnpm

然后打开vs code 输入命令 cnpm install

背景:使用npm下载时,出现错误Unexpected end of JSON input while parsing near···
解决方法:先清除缓存,再重新安装
清除缓存:运行
npm cache clean --force

重新安装:
npm install

如果输入命令报错

 

 还报错,输入命令 set-ExecutionPolicy RemoteSigned

 

安装cnpm npm install -g cnpm -registry=https://registry.npm.taobao.org

参考博客 

安装 node:https://www.cnblogs.com/uniapp/p/13115877.html

npm -v 报错,修改安装位置的文件权限给全部

安装cnpm:https://www.cnblogs.com/zhouyu2017/p/6485265.html

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM