HTML / local front-end quickly erected: node 10 + http-server deployment of 10 seconds to achieve static pages

surroundings:

win10 2020.02.01 version

node 10

Required libraries: http-server

 

1. Right-administrator to run powershell, execution

 cnpm install http-server -g

 

2. go to the root directory of the project, the implementation of

http-server -h

 

If successful, it will list the IP you can access, just access the server browser is the same performance

 

 

I encountered the following problems:

Solution: https://blog.csdn.net/qq_45164496/article/details/102170303

 

 

 

Right administrators run powershell, execution

set-ExecutionPolicy RemoteSigned

 

Guess you like

Origin www.cnblogs.com/ww01/p/12322743.html