Install latest nodejs version in ubuntu 14.04

前端 未结 13 1193
北恋
北恋 2020-12-12 13:50

This is the way I installed nodejs in ubuntu 14.04 LTS:

sudo add-apt-repository ppa:chris-lea/node.js

sudo apt-get install nodejs

When I c

相关标签:
13条回答
  • 2020-12-12 14:32

    Checkout nvm. It manages node distributions for you, so you can have multiple projects running that use different nodejs versions.

    nvm lets you choose exactly which version of node you need. With apt-get you will always only get the latest version that has been included into debian/ubuntu by those package maintainers, but those are usually very old. Especially in an area like nodejs, this is mostly not suitable.

    0 讨论(0)
提交回复
热议问题