Nodejs ppa:Chris-lea/node.js fails

无人久伴 提交于 2019-12-01 14:39:13
7e2e63de

The project move from Launchpad to NodeSource. Information are here and here.

You can do this instead, in the CLI:

# runs new installer, remove Launchpad repository entry if it exists:
curl -sL https://deb.nodesource.com/setup | sudo bash -    
sudo apt-get -y install nodejs          # install nodejs
sudo npm install npm -g                 # update NPM to latest stable

If sudo apt-get -y install nodejs fails, try:

 sudo apt-get update
 sudo apt-get -y install nodejs --fix-missing

There are now official instructions from joyent (primary nodejs backer). For Ubuntu:

sudo apt-get purge nodejs npm                               # clean up the place
curl -sL https://deb.nodesource.com/setup | sudo bash -     # add repository
sudo apt-get install -y nodejs                              # install both nodejs & npm

For other unix distributions, osx and windows see the link.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!