1.进入CMD,查看npm配置路径
npm config ls
2.重新配置路径
npm config set prefix "D:\npm"
npm config set cache "D:\npm\cache"
3.配置后安装vue cli 会安装在D:\npm目录下
4.新建项目文件夹giu bash here 进入命令行安装vue项目
1.进入CMD,查看npm配置路径
npm config ls
2.重新配置路径
npm config set prefix "D:\npm"
npm config set cache "D:\npm\cache"
3.配置后安装vue cli 会安装在D:\npm目录下
4.新建项目文件夹giu bash here 进入命令行安装vue项目