npm install -g grunt-cli failed in Linux

萝らか妹 提交于 2019-12-06 04:49:32

I don't recommend to use sudo for your npm installations (any sudo npm install), it seems like you need to update your repository, I'm not sure whet distro you are using but if debian or ubuntu you should do something like:

sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

for more info read how to install node from npm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!