当前位置:网站首页>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

边栏推荐
- labelimg生成的xml文件转换为voc格式
- 机械臂速成小指南(八):运动学建模(标准DH法)
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
- VS 2019 配置tensorRT生成engine
- QT based tensorrt accelerated yolov5
- [mathematical logic] predicate logic (individual word | individual domain | predicate | full name quantifier | existence quantifier | predicate formula | exercise)
- How to select the minimum and maximum values of columns in the data table- How to select min and max values of a column in a datatable?
- 403 error displayed when vs cloning
- @Accessors annotation function specifies that the prefix follows the hump naming
- MySQL practice 45 lecture [row lock]
猜你喜欢

MySql实战45讲【事务隔离】

用Three.js做一个简单的3D场景

Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
![MySQL practice 45 lecture [transaction isolation]](/img/a5/5420651d6be51e892976f02be8c43c.png)
MySQL practice 45 lecture [transaction isolation]

Docker install redis

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

PAT乙级“1104 天长地久”DFS优化思路

机械臂速成小指南(八):运动学建模(标准DH法)

VS code配置虚拟环境

分布式事务
随机推荐
[mathematical logic] predicate logic (individual word | individual domain | predicate | full name quantifier | existence quantifier | predicate formula | exercise)
Idea set method call ignore case
Vs 2019 installation and configuration opencv
Application of derivative in daily question
[combinatorics] number of solutions of indefinite equations (number of combinations of multiple sets R | number of non negative integer solutions of indefinite equations | number of integer solutions
Reset or clear NET MemoryStream - Reset or Clear . NET MemoryStream
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)
Pytorch轻量级可视化工具wandb(local)
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
Do you really understand relays?
Limit of one question per day
C#通用接口调用
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
softmax的近似之NCE详解
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
敏捷认证(Professional Scrum Master)模拟练习题
com.fasterxml.jackson.databind.exc.InvalidFormatException问题
Convert binary stream to byte array
Nce detail of softmax approximation
el-tree搜索方法使用