美文网首页Linux
关于npm install失败的解决方法

关于npm install失败的解决方法

作者: 試毅_思伟 | 来源:发表于2019-07-30 09:33 被阅读0次

可以尝试以下解决方案

1.授权执行

sudo npm install

2.运行高权限用户

sudo npm install --unsafe-perm

3.安装某个模块

sudo npm i 模块名 --unsafe-perms

4.清除代理

npm config set proxy false

5.清除缓存

npm cache clean --force

相关文章

网友评论

    本文标题:关于npm install失败的解决方法

    本文链接:https://www.haomeiwen.com/subject/bpfgrctx.html