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
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!