Ps:
- nodejs:https://nodejs.org
- npm:https://www.npmjs.com/
I. node. JS Installation and Configuration
- Download to https://nodejs.org/en/download/, x64 and x86
- After installation, configure PATH (F:\Program files (x86) \nodejs;) and Node_path (F:\Program files (x86) \nodejs\node_modules;)
Second, install NVM, version switch management tool
1, System creation put NVM code: (c:\git)
Open cmd or NODEJS command input, as follows:
$ C:
$ cd git
$ git clone https://github.com/hakobera/nvmw.git
2, in the environment configuration, configuration, directly in the following PATH to add---->path=e:\nodejs\nvm_git\nvmw\;%path%
3, then, in the command input $NVM will output NVM LS,NVM help .... The data is successful.
Third, install NPM
Because of the historical reasons for Nodejs's initial Linux development, NPM did not initially support the Windows environment, but as Nodejs successfully ported to the Windows platform, NPM's requirements for windows were growing.
1, to git download NPM source code
git clone--recursive git://github.com/isaacs/npm.git
CD NPM
Node Cli.js install NPM-GF
2, configuration, command input NPM, will be a bunch of data on behalf of the successful installation.
Iv. installing node. js
- Windows double-click Install to
- After installation, command input node-v, print node-v.
node. js installation and use steps-windows