问题描述:
更改了node 默认安装位置,在项目执行npm install命令时报错
问题分析:
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错误!文件及其包含目录的权限,或者尝试运行 npm错误!以root/Administrator身份再次执行该命令。
解决办法:
1.找到nodejs文件的安装位置,右击进入【属性】-【安全】
2.修改Users的权限,将【完全控制】【修改】改为允许
3.点击【应用】和【确定】