vue npm打包相关

相关命令

npm install grunt # 本地安装
npm install -g grunt-cli # 全局安装
查看版本
npm -v

安装nrm,用于切换npm的镜像地址

npm install -g nrm
#切换镜像地址
nrm use
#查看有哪些镜像
nrm ls

vue相关使用

此命令用于下载package.json的依赖js

npm install
运行
npm run build

This is probably not a problem with npm. There is likely additional logging output above.

见https://www.jianshu.com/p/736990115561
清空后重新安装
删除包,重新安装一次,如果还是不可以的话,在把之前装的都清空
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install

猜你喜欢

转载自blog.csdn.net/i6725545/article/details/88827797
今日推荐