npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

前端 未结 5 693
孤城傲影
孤城傲影 2020-12-23 22:46

I am trying to install monaca with this command.

npm install -g monaca

But right after getting these errors:



        
5条回答
  •  我在风中等你
    2020-12-23 23:24

    it is very simple you can use

    sudo npm install -g monaca

    or

    su -

    then

    npm install -g monaca

    explenation

    su -
    

    makes you as root ,who have permission to read , write and delete in all users click here for the screen shot showing the error and the solution in the update of npm

    this is for ubuntu i don't know is it work for other os
    

提交回复
热议问题