Home > Web Front-end > JS Tutorial > Nodejs prompts 'xxx' is not an internal or external command solution_node.js

Nodejs prompts 'xxx' is not an internal or external command solution_node.js

WBOY
Release: 2016-05-16 16:30:54
Original
1414 people have browsed it

Generally, the reason for this problem is that there is a problem with npm installation, and the global module directory is not added to the system environment variable.

Windows users check whether the npm directory is added to the system variable PATH. If it does not exist, it needs to be added manually. After adding it, the CMD console needs to be restarted.

nodejs module global directory environment variables

The npm directory can be found using the npm command: npm config get prefix

Okay, the problem is solved. Isn’t it super simple and practical? I hope this article can be helpful to everyone.

Related labels:
source:php.cn
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