error installing coffeescript on mac 10.7.2

后端 未结 3 1699
夕颜
夕颜 2020-12-16 20:30

Node and npm are both installed and up to date but keep getting this error when trying to install coffeescript. I am still new to programming so any advice would be greatly

3条回答
  •  無奈伤痛
    2020-12-16 21:10

    Following the advice of nmp author Isaac Z. Schlueter:

    I strongly encourage you not to do package management with sudo!

    Instead of sudo npm install ... you could instead change permissions on your /usr/local directory:

    sudo chown -R $USER /usr/local
    

    After doing this once, you should be able to npm install ... (without sudo).

提交回复
热议问题