The Node Package Manager (NPM) allows you to easily manage modules in projects by downloading packages, resolving dependencies, running tests, and installing command-line utilities.
1.在linux環境下,安裝node的包管理-npm
$ curl http://npmjs.org/install.sh | sh
2.確認是否安裝完成
$ npm --version
The NPM version should be displayed.