Teach you how to change win7node_global

WBOY
Release: 2024-01-02 11:29:37
forward
1184 people have browsed it

Win7's node_global is a global variable. We can change the running environment of software, programs and other files by changing it, so that the original software that cannot run can run normally. We only need to go to the advanced system settings of the computer. The global settings have been changed, let’s take a look at them together.

How to change node_global in win7

1. First, right-click the desktop computer and open "Properties"

Teach you how to change win7node_global

2. Click "Advanced System" on the left Settings" and then click "Environment Variables"

Teach you how to change win7node_global

3. Then create a new environment variable and name it "NODE_PATH". Find the "node_global" file path that needs to be changed in the variable value.

Teach you how to change win7node_global

4. If we cannot find or do not have the node_global file, create a new "node_global" and "node_cache" folder in the software installation directory that needs to be changed.

Teach you how to change win7node_global

5. Then use "win r" to open the run, enter "cmd" and press Enter to confirm to open the command window.

Teach you how to change win7node_global

6. Then enter "npm config set prefix "C:\Program Files\nodejs\node\global"" and "npm config set cache "C: \Program Files\nodejs\node_cache""Press Enter to confirm.

Teach you how to change win7node_global

The above is the detailed content of Teach you how to change win7node_global. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:somode.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template