sudo: npm: command not found

前端 未结 25 2667
渐次进展
渐次进展 2020-11-28 01:19

I\'m trying to upgrade to the latest version of node. I\'m following the instructions at http://davidwalsh.name/upgrade-nodejs

But when I do:

sudo np         


        
25条回答
  •  感情败类
    2020-11-28 01:56

    You can make symbolic link & its works for me.

    1. find path of current npm

    which npm

    1. make symbolic link by following command

    sudo ln -s which/npm /usr/local/bin/npm

    1. Test and verify.

    sudo npm -v

提交回复
热议问题