转载:从零开始搭建一个Vue项目_小虾米的成长之路的博客-CSDN博客_搭建vue项目
注意点-进行Vue环境配置时产生的问题及解决方案:
node.js安装及环境变量配置-全局安装VUE及VUE-cli
在cmd依次输入
npm i vue -g
npm i vue-cli -g 报错:
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
解决方案:
npm的安装路径为文件夹“node_cache”以及npm的安装地址文件夹“node_global”分别更改这两个文件夹的Users权限
右键 “属性” -> “安全” -> “编辑”
把Users的权限设置为全部允许(理论上在完全控制后面打勾就行)->“应用” ->“确定”