当前位置:网站首页>NPM: the 'NPM' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name. If the path is included, make sure the path is corr
NPM: the 'NPM' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name. If the path is included, make sure the path is corr
2022-07-03 03:34:00 【Water W】
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 try again .
Catalog
node.js Error reporting during installation :
solve node.js Error reporting during installation :
2、 Run as administrator cmd, Enter the command , initialization package.json file
3、 ... and 、 download npm install @escook/request-miniprogram
One 、 Report errors :

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 try again .
The position of That's ok :1 character : 1
+ npm init -y
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Two 、 solve :
1、 install node.js
(1) Enter official website download | Node.js Chinese net

(2) Download according to the number of digits on your computer , Wait for download to complete ,

(3) Run the file just downloaded , The installation process will appear , Follow the installation process step by step ,

Click on “next”,

Check “ receive ”, Click on “next”,

You can change the installation path according to your needs , Here I install to D It's on the plate , Click on “next”,



Click on “next”,

(4) stay cmd Run the following command in , testing node.js Has it been installed successfully ,
node -v
npm -v
node.js Error reporting during installation :
Be careful : We can see that after the second command is executed , Wrong report .
How to solve npm WARN Configure global '–global', '–local' Have been abandoned . Use “–location=global” Instead of “Error?solve node.js Error reporting during installation :
(1) First, find the installation path node.js Folder , find “npm” and “npm.cmd” this 2 File ,

(2)
- “npm” Files can be opened in Notepad ,
- “npm.cmd” Documents available vscode open ,
Find this 2 In a file prefix -g Replace with
prefix --location=global(3)“npm” Before the document is modified :
After modification ,“npm” File for :

(4) “npm.cmd” The file is modified as :

(5) After the modification 、 Before closing cmd. We reopen a new cmd, stay cmd Re enter the command
You can see that there is no mistake !!!

OK, The problem has been solved .
2、 Run as administrator cmd, Enter the command , initialization package.json file
npm init -yYou can see cmd The command line did not report an error ,

And a new file also appears under the project folder “pachage.json”,

initialization package.json File successfully !!!
3、 ... and 、 download npm install @escook/request-miniprogram
npm install @escook/request-miniprogramContinue to cmd Enter the next command in the window ,

OK.
边栏推荐
- Table structure of Navicat export database
- Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
- Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
- Pytorch轻量级可视化工具wandb(local)
- 程序员新人上午使用 isXxx 形式定义布尔类型,下午就被劝退?
- Pytorch配置
- FileZilla Client下載安裝
- Don't use the new Dede collection without the updated Dede plug-in
- Change and access of median value of listening object
- 动态规划:最长公共子串和最长公共子序列
猜你喜欢

Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check

Don't use the new Dede collection without the updated Dede plug-in
![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

UMI route interception (simple and rough)

LVGL使用心得

递归:深度优先搜索

简易版 微信小程序开发之页面跳转、数据绑定、获取用户信息、获取用户位置信息

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

numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences

Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
随机推荐
监听对象中值变化及访问
The calculation of stripe, kernel and padding in CNN
BigVision代码
Application of derivative in daily question
将时间戳转为指定格式的时间
[mathematical logic] predicate logic (individual word | individual domain | predicate | full name quantifier | existence quantifier | predicate formula | exercise)
sigaction的使用
Réglez la hauteur et lancez le système. Currenttimemillis catton
【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】
MongoDB基本操作【增、删、改、查】
leetcode:动态规划模板
Dynamic programming: longest common substring and longest common subsequence
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
[pyg] understand the messagepassing process, GCN demo details
VS克隆时显示403错误
900W+ 数据,从 17s 到 300ms,如何操作
QT based tensorrt accelerated yolov5
Limit of one question per day
机械臂速成小指南(八):运动学建模(标准DH法)
TCP/IP模型中的重磅嘉宾TCP--尚文网络奎哥