nodejs non-install version configuration (windows)

  1. nodejs official website Download:  https://nodejs.org/en/download/

  2. 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

 

  1. 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"

  2. New NODE_PATH environment variable

    to add NODE_PATH D in environment variables: \ develop \ node \ node_global \ node_modules



  3. New configuration path environment variable



    In the path of the new D: \ develop \ node \ node_global


  4. Revalidate





  5. Installation express verification



    View D: \ develop \ node \ node_global \ node_modules to see if the installation was successful

 

 

Guess you like

Origin www.cnblogs.com/bunuo/p/10973826.html