$ sudo apt-get update
$ sudo apt-get install -y python-software-properties python g++ make
$ sudo add-apt-repository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install nodejs
$ node -v
reference:
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
No comments:
Post a Comment