npm install ERR Please try running this command again as root/Administrator

1,913 阅读1分钟

npm install 报错提示请使用管理员

之前把node升级了,npm自动升级到 npm5 再npm install xxx 会报如下图错误

Please try running this command again as root/Administrator

解决方案: 后面加上--no-optional 或者降级 5.3 版本 升级更高版本

	npm install  hexo-cli -g --no-optional

我的博客和github地址 blog.langpz.com github.com/lanpangzhi

参考

stackoverflow.com/questions/4…