当前位置:网站首页>Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
2022-07-03 03:20:00 【YK kundi】
Reading guide
npm : Cannot be “npm” Item identified as cmdlet、 function 、 The name of the script file or runnable program . Please check the spelling of the name , If the path is included , Please make sure the path is correct , then
Do it again .
Solution summary
Method 1 : Run as administrator
Method 2 : see npm Environment variable configuration
Method 1 : Run as administrator
Right click vscode, Select an administrator to run as , Problem solvable .
Method 2 : see npm Environment variable configuration
cmd function node -v,npm -v Check for installation
If at this time cmd Window tip node Not an internal or external command , It's not a runnable program , It is still the problem of environment variables

1. To configure node environment variable :
Control panel –> Systems and security –> System –> Advanced system setup –> environment variable / win+ environment variable


Under user variables , New user variable .( Write the variable name yourself ). Variable value write node.js The installation path of

2.npm The storage path of the global module and cache And add environment variables :
1) stay node.js Set up under the node_global and node_cahce Folder
cmd Window type npm config set prefix“ The address where you want to create the file ”
npm config set cache“ The address where you want to create the file ”. One set the global variable , One set the cache .
2) New system variable

边栏推荐
- Pytorch轻量级可视化工具wandb(local)
- 用Three.js做一个简单的3D场景
- Why does thread crash not cause JVM crash
- docker安装mysql
- 机械臂速成小指南(八):运动学建模(标准DH法)
- L'index des paramètres d'erreur est sorti de la plage pour les requêtes floues (1 > Nombre de paramètres, qui est 0)
- Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf
- 将时间戳转为指定格式的时间
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
- Find the storage address of the elements in the two-dimensional array
猜你喜欢

渤、黄海的潮汐特征

Nce detail of softmax approximation

The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled

Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11

Unity3d RPG implementation (medium)

Vs 2019 configuration tensorrt

Distributed transaction
![Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence](/img/60/bae0e8d92a53bcd2b2de3fb22b3b99.jpg)
Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence

idea 加载不了应用市场解决办法(亲测)

Pytoch lightweight visualization tool wandb (local)
随机推荐
Node start server
Edit and preview in the back pipe to get the value writing method of the form
Nasvit: neural architecture search of efficient visual converter with gradient conflict perception hypernetwork training
二维数组中的元素求其存储地址
docker安装redis
Réglez la hauteur et lancez le système. Currenttimemillis catton
Pytorch轻量级可视化工具wandb(local)
Last update time of all sqlserver tables
QT based tensorrt accelerated yolov5
模糊查詢時報錯Parameter index out of range (1 > number of parameters, which is 0)
How to make backgroundworker return an object
3D drawing example
模糊查询时报错Parameter index out of range (1 > number of parameters, which is 0)
Opengauss database development and debugging tool guide
Lvgl usage experience
Vs 2019 configuration du moteur de génération de tensorrt
Don't use the new Dede collection without the updated Dede plug-in
Vs 2019 configuration tensorrt
About HTTP cache control
VS 2019安装及配置opencv