How can I change the version of npm using nvm?

后端 未结 14 2195
温柔的废话
温柔的废话 2020-11-28 17:27

I\'ve been using NVM to install the latest versions of nodeJS for my node work. It works totally fine for installing separate versions and switching between them. It also in

14条回答
  •  广开言路
    2020-11-28 18:19

    Slight variation on the above instructions, worked for me. (MacOS Sierra 10.12.6)

    npm install -g npm@3.10.10
    rm /usr/local/bin/npm
    ln -s ~/.npm-packages/bin/npm /usr/local/bin/npm
    npm --version
    

提交回复
热议问题