angula安装各种包出现"Please try running this command again as root/Administrator."的解决方法

第一种,无视,重复安装即可。

第二种,找到nodejs安装目录,右键选择以管理员身份运行,再试。

第三种,在命令上进行调整,例如我在安装webpack时候,用npm i webpack出现这样的结果

并附有Please try running this command again as root/Administrator

当我换一种指令执行的时候,指令如下

执行结果

所以说,有时候人生就是一场惊喜,突如其来。

原文地址:https://www.cnblogs.com/shiyinan/p/7521720.html