node.js platform to build

This learned some knowledge of node.js, node.js is really powerful! But it is also very complicated to configure, read some articles, and he wrote a program to practice hand, write down deepen their own impression.

Installation node.js

(1) installation nodejs, modify the installation path (no spaces!)
The installation path from: C: Program Filesnodejs \
modify read: C: nodejs \

(2) the Git installed, the default (closing eyes, the next step)

(3) Test the installation nodejs success:

<Win>+<R>, cmd, <Enter> 打开命令行:
node -v 检查是否安装node
npm -v检查是否安装npm
git检查是否安装git
    

clipboard.png

(4) mounted global smart-npm

npm install --global smart-npm

或:npm i -g smart-npm

clipboard.png

(5) global http-server installation

snpm i -g http-server
http-server -p 80

clipboard.png

(6) Global Installation bower

snpm i -g bower

clipboard.png

(7) Finally, enter bower -v appear 1.8.0 is installed successfully

clipboard.png

Guess you like

Origin www.cnblogs.com/10yearsmanong/p/12216773.html