npm install permission denied (macOS)

前端 未结 6 820
梦谈多话
梦谈多话 2021-02-07 15:08

To install a Bootstrap theme I want to run npm install. However I always receive a permission denied error.

I already tried nvm and then switched with

6条回答
  •  攒了一身酷
    2021-02-07 15:54

    I entered the following:

    cd /Users/Marc/Desktop/Dev
    rm -rf ./masterclass/node_mdoules/
    chown -R $USER ./masterclass/
    cd masterclass    
    npm install
    

    once this was completed the results indicated warnings and one notice instead of previous result of no permission and error.

    I then entered the following:

    % sudo npm install --global firebase-tools
    

    my result was success upon completion of the last terminal entry.

提交回复
热议问题