Get the App
SLTechnology News&Howtos  ›  Development  › 

Execute node-v to show how node is not an internal or external command

Shulou Source: shulou.com Published: 2022-06-01 04:15:48 09月22日 Update

The main content of this article is to explain how to execute node-v to show that node is not an internal or external command. Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to execute node-v to show that node is not an internal or external command.

Solution: 1, right-click "my computer", select "Properties"-"Advanced system Settings"-"Advanced"-"Environment variable"; 2, in the "system variable", create a new "NODE_PATH" variable whose value is the node installation path; 3, edit Path, add ";% NODE_PATH%" at the end of the variable value.

Operating environment of this tutorial: windows10 system, nodejs version 10.1.0, DELL G3 computer.

After node.js installation, enter "node-v" prompt 'node' is not an internal or external command, how to solve this? Now I would like to introduce to you.

First of all, if nodejs is already installed, it is most likely that the environment variables are not configured or misconfigured.

Solution step: set environment variables

Right-click "my computer"-Properties-Advanced system Settings-Advanced-Environment variables, as shown below:

Then select New under the system variable below, then create a new NODE_PATH, and set the installation address. When I installed it, I just changed disk C to disk D, so it is D:\ Program Files\ nodejs. The address is for reference only. If you install it in another location, the address here is different.

Then edit Path to add;% NODE_PATH% at the end of the variable value.

Then test it, type node-v to see the node version, or type npm-v

Node-vnpm-v

So it's all set.

At this point, I believe you have a deeper understanding of "executing node-v shows that node is not an internal or external command," so you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Variables environment system commands advanced address computer input configuration content tail properties methods values learning selection wrong practical deeper maximum Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn NVidia Huawei macOS Docker