Home > Web Front-end > JS Tutorial > The command processing method cannot be found after Nodejs installs the module globally.

The command processing method cannot be found after Nodejs installs the module globally.

php中世界最好的语言
Release: 2018-05-21 14:20:09
Original
2672 people have browsed it

This time I will bring you Nodejs globalThe command processing method cannot be found after installing the module . What are the precautions that the command cannot be found after Nodejs globally installs the module? The following are Let’s take a look at practical cases.

Encountered this problem, record it, and see that the prompt should be a problem with the environment variable. Execute the following command to get the module installation path of Nodejs:

npm prefix -g
Copy after login

The output will be global Just add the installation path to the Path entry of the environment variable.

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to the php Chinese website Other related articles!

Recommended reading:

Detailed explanation of the steps to install and delete npm modules

Detailed explanation of the steps to install nodejs&npm configuration global path in Linux Centos7.2

vue addRoutes Detailed explanation of the steps to implement dynamic permission routing menu

The above is the detailed content of The command processing method cannot be found after Nodejs installs the module globally.. For more information, please follow other related articles on the PHP Chinese website!

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