node installation and http server
node installation
1. Download the installation package
Download: https://nodejs.org/en/
selected operating system corresponding packet:
2. Install
Fool Next until the installation is successful
3. Check the version number
After the installation process has been successfully installed automatically configured environment variables and installed a npm package can be executed node -v and npm -v view separate node and npm version number:
http server enable local server
1. Download http server: npm install http-server -g
2. open http server service: http-server -c-1
3. Close http server service: ctrl-c
terminal display ^Chttp-server stopped.
turns off service success