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

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

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

Share

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

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!

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

Development

Wechat

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

12
Report