npm i命令报错“Please try running this command again as root/Administrator”

Posted shiyinan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm i命令报错“Please try running this command again as root/Administrator”相关的知识,希望对你有一定的参考价值。

相对npm install命令不够正规,虽然使用npm -help命令查看npm i和npm install的内容是一样的,但是我使用的intellij 2017.2.4版本会经常对“npm i”这个命令报这个错。所以建议使用npm install命令。然而,还会出现这个错误的话就可以忽视了,毕竟我用angular-cli工具创建的项目初始安装包npm install即便报错也不必理会,继续npm start测试编译通过,浏览器可以正常打开页面。

以上是关于npm i命令报错“Please try running this command again as root/Administrator”的主要内容,如果未能解决你的问题,请参考以下文章

npm i 报错 'match' of undefined 错误以及删除node_modules失败

npm i node-sass 报错

linux执行npm i 权限报错

linux执行npm i 权限报错

npm 安装报错 “npm ERR! code Z_BUF_ERROR“ 解决方法

npm i 一直报错死活安装不下来所需要的依赖