Home > Article > Web Front-end > How to download and install nodejs
Many novices don’t know how toinstallnodejs. Today I will bring you the nodejs download and installation tutorial. Let’s take a look.
1. Install nodejs
Official website Download node.js Install
Create a new "NODE_PATH" under system variables and enter "D:\Program Files\nodejs\node_modules ”
Create a new directory node_global node_cache in the nodejs installation directory
(Change the user variable “PATH” to “D:\Program Files\nodejs\node_global\”)
npm config set prefix “D:\Program Files\nodejs\node_global”
npm config set cache “D:\Program Files\nodejs\node_cache”
2. Install cnpm
npm install -g cnpm –registry=https://registry.npm.taobao.org
3. Problems encountered
nodejs npm command does not respond Solution
Deletenpmrc file .npmrc under C:\Users{Account}\
npm ERR! Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm config set strict-ssl false
# I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the PHP Chinese website!
Related reading:
Summary of the front-end js framework and explanation of its uses
Detailed introduction to the three major structures of the javascript development tutorial
The server actively sends data back to the client in H5 implementation steps
The above is the detailed content of How to download and install nodejs. For more information, please follow other related articles on the PHP Chinese website!