Node.js : NPM Install Fails

前端 未结 2 512
南笙
南笙 2021-02-02 01:11

I get this error if I run

curl http://npmjs.org/install.sh | sh

even with sudo.

    cirk@cirk-Parallels-Virtual-Platform:~$ cu         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-02 01:56

    Why are you running that in /usr?

    If you really need to, this page suggests you may run that as root, so that would be:

    curl https://www.npmjs.com/install.sh | sudo sh
    

    But you better make sure it won't break your system, before running that.

提交回复
热议问题