win server installation Nodejs

  1. Download the
    official website to download the installation package
    https://nodejs.org/en/download/
    here Select Install zip version.
    win server installation Nodejs
    2. Install the
    downloaded package to extract the files node-v12.14.0-win-x64.zip: C: \ Program Files \ nodejs in.
    Then the new node-cache and node-global directory in the directory. Mainly used to put the installation directory npm global module.
    3. configuration environment variable
    New system variables.
    Variable Name: NODE_HOME
    variable value (your installation directory): C: \ Program Files \ nodejs
    win server installation Nodejs
    compile path variable, add
    % NODE_HOME%
    % NODE_HOME% \-the Node, Ltd. Free Join
    4. Configure
    to open CMD, enter:
    npm config set prefix "C:\Program Files\nodejs\node-global"
    npm config set cache "C:\Program Files\nodejs\node-cache"

    Set npm domestic source, change taobao.

    npm config set registry "https://registry.npm.taobao.org"

    5. Review the beta version of
    cmd command input:

    node -v
    npm -v

    win server installation Nodejs

Guess you like

Origin blog.51cto.com/10874766/2464233