https://github.com/nodesource/distributions
Installation instructions Node.js v15.x: # Using Ubuntu curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_15.x | bash - apt-get install -y nodejs Node.js v14.x: # Using Ubuntu curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_14.x | bash - apt-get install -y nodejs
npm修改源
修改源
npm config set registry https://registry.npm.taobao.org
修改后可以通过这个进行测试
npm config get registry