Home > Article > Web Front-end > How to correctly handle cnpm is not an internal or external command after Taobao cnpm installation
This time I will bring you how to correctly handle Taobao cnpmAfter installationcnpm is not an internal or external command, handle Taobao cnpm after installation and cnpm is not an internal or external commandNotesYes Which ones, the following are practical cases, let’s take a look.
When I opened the node installation directory, I found that cnpm and npm were not installed in the same directory:
npm is located in the directory D:\Program Files\nodejs and D:\Program Files\nodejs\node_modules\npm
cnpm directory D:\Program Files\nodejs\ node_global and D:\Program Files\nodejs\node_global\node_modules\cnpm So copy the related files of cnpm to the file where npm is located, and the problem is solved!
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
How to implement the drop-down box function in vue without using select
How to implement the WeChat mini-box Program’s custom multi-select event
The above is the detailed content of How to correctly handle cnpm is not an internal or external command after Taobao cnpm installation. For more information, please follow other related articles on the PHP Chinese website!