Switch to the root account to upgrade and update the entire system:
$ sudo-i# apt-get update# apt-get Upgrade
Install the node. JS Runtime Environment:
# apt-get Install g++ make python python-software-properties# add-apt-repository ppa:chris-lea/node.js# apt-get update# A Pt-get Install Nodejs
installing some packages using NPM failed to see (NPM domestic image introduction)Image use Method (three ways any one can solve the problem, we recommend the use of a third, the configuration is dead, the next time the configuration is still in):
1. Through the config command
npm config set registry https://registry.npm.taobao.org npm info underscore (如果上面配置正确这个命令会有字符串response)
2. Command line designation
npm --registry https://registry.npm.taobao.org info underscore
3. Edit ~/.npmrc
Add to the content below
registry = https://registry.npm.taobao.org
Search Image: Https://npm.taobao.org
To create or use an image, refer to: https://github.com/cnpm/cnpmjs.org