当前位置:网站首页>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
边栏推荐
- Edit and preview in the back pipe to get the value writing method of the form
- docker安装mysql
- Node start server
- Agile certification (professional scrum Master) simulation exercise-2
- 二维数组中的元素求其存储地址
- open file in 'w' mode: IOError: [Errno 2] No such file or directory
- Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)
- Bigvision code
- Force freeing memory in PHP
- ComponentScan和ComponentScans的区别
猜你喜欢
MySql实战45讲【全局锁和表锁】
Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
Idea set method call ignore case
VS 2019配置tensorRT
Vs 2019 configuration tensorrt
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
Anhui University | small target tracking: large-scale data sets and baselines
MySql实战45讲【SQL查询和更新执行流程】
Nasvit: neural architecture search of efficient visual converter with gradient conflict perception hypernetwork training
Don't use the new Dede collection without the updated Dede plug-in
随机推荐
Model transformation onnx2engine
PHP constructor with parameters - PHP constructor with a parameter
Nasvit: neural architecture search of efficient visual converter with gradient conflict perception hypernetwork training
docker安装redis
别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
二进制流转换成字节数组
Vs 2019 installation and configuration opencv
[pyg] understand the messagepassing process, GCN demo details
监听对象中值变化及访问
MySql实战45讲【索引】
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
[mathematical logic] normal form (conjunctive normal form | disjunctive normal form | major item | minor item | maximal item | minor item | principal conjunctive normal form | principal disjunctive no
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
3D drawing example
Use of check boxes: select all, deselect all, and select some
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
Vs 2019 configure tensorrt to generate engine
基于Qt的yolov5工程
TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism
MongoDB复制集【主从复制】