How to correctly handle cnpm is not an internal or external command after Taobao cnpm installation

php中世界最好的语言
Release: 2018-05-29 10:13:39
Original
3258 people have browsed it

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:\ProgramFiles\nodejsandD:\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 therelated filesof 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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!