-
nodejs official website Download: https://nodejs.org/en/download/
-
And expanded into a local configuration environment variable
In the new environment variable path in D: \ develop \ node
Check whether success
So far success has been configured nodejs
But the global node modules are installed in the C drive is not convenient management, we can customize the node installation location, if you change the development environment, you can put a whole package installation directory to the new development environment
Custom configuration environment
-
Setting Resource Management Packs and cache path
New node_global in nodejs installation directory, node_cache folder
Performed by CMD command:
npm config set prefix "D:\develop\node\node_global"
npm config set cache "D:\develop\node\node_cache"
-
New NODE_PATH environment variable
to add NODE_PATH D in environment variables: \ develop \ node \ node_global \ node_modules -
New configuration path environment variable
In the path of the new D: \ develop \ node \ node_global -
Revalidate
-
Installation express verification
View D: \ develop \ node \ node_global \ node_modules to see if the installation was successful