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

 

posted @ 2022-01-19 21:41  世人皆萌  阅读(1333)  评论(0编辑  收藏  举报