Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Nodejs in Windows server

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

download

Download the installation package on the official website

Https://nodejs.org/en/download/

Choose to install the zip version here.

two。 Installation

Extract the downloaded package file node-v12.14.0-win-x64.zip to: C:\ Program Files\ nodejs.

Then create a new node-cache and node-global directory in the directory. Mainly used to put the installation directory of the npm global module.

3. Configure environment variables

Create a new system variable.

Variable name: NODE_HOME

Variable value (your installation directory): C:\ Program Files\ nodejs

Compile path variables, add

% NODE_HOME%

% NODE_HOME%\ node-global

4. Configuration

Open CMD and enter: npm config set prefix "C:\ Program Files\ nodejs\ node-global" npm config set cache "C:\ Program Files\ nodejs\ node-cache"

Set the npm domestic source and change it to taobao.

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

5. View the test version

Cmd command input:

Node-vnpm-v

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report