node.js up a local server debugging

======================== node.js debugging =====================
official website node.js download the file, the next step until the installation is complete;
run cmd (win10 to run as administrator cmd, otherwise it will error);
the Node and npm -v -v check whether the installation was successful;
1 and then enter to npm install anywhere -g installation anywhere, global installed
win10 environment variables to configure my computer to open the advanced system settings environment variables
user variables: C: \ Program files \ nodejs \ node_global (nodejs installation directory this file)
system variables New: the first line of the second row NODE_PATH C: \ Program files \ nodejs \ node_global \ node_modules
2cmd cd plus run to open the folder path + index.html (if they can be directly dragged into drag) win10 do not know why not go in drag;
3 input anywhere enter will jump to the page in the same wifi mobile phone enter an address, you can access the phone

Guess you like

Origin www.cnblogs.com/hs610/p/11564247.html