node.js在vscode中npm intsall报错:权限不足
问题今天在vccode中使用npm intsall安装依赖时,报错:大致意思就是权限不足,以往我都是用管理员打开命令行,cd到当前文件夹再安装,今天解决一下。If you believe this might be a permissions issue, please double-check thenpm ERR! permissions of the file and its contain
·
问题
今天在vccode中使用npm intsall安装依赖时,报错:
大致意思就是权限不足,以往我都是用管理员打开命令行,cd到当前文件夹再安装,今天解决一下。
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
解决
csdn上找了几种方案,可行方案:
以管理员身份打开命令行,输入:
npm install --unsafe-perm=true --allow-root
测试

完美解决,具体原因暂时不知道,应该时我nodejs安装在D盘的原因,如果默认安装在C盘,应该不会出现上述问题。
更多推荐
所有评论(0)