使用npm安装vue时,经常会自己设置安装路径,比如:
npm config set prefix "D:\xxx\xx\node_global"
npm config set cache "D:\xxx\xx\node_cache"
如果不小心设置错误,想要更改,可以找到.npmrc(在用户下)
选择打开后,删除设置错误内容,保存。回到npm config下重新设置即可。
使用npm安装vue时,经常会自己设置安装路径,比如:
npm config set prefix "D:\xxx\xx\node_global"
npm config set cache "D:\xxx\xx\node_cache"
如果不小心设置错误,想要更改,可以找到.npmrc(在用户下)
选择打开后,删除设置错误内容,保存。回到npm config下重新设置即可。