当前位置:网站首页>The item 'node.exe' was not recognized as the name of a cmdlet, function, script file, or runnable program.
The item 'node.exe' was not recognized as the name of a cmdlet, function, script file, or runnable program.
2022-07-31 11:16:00 【m0_67402013】
NodeJS configuration related issues
Error
1. The item "node.exe" is not recognized as the name of a cmdlet, function, script file, or runnable program.
2. Enter node -v in the terminal, and issue a prompt: nodejs is not an internal or external command solution in cmd prompt
3. Enter npm -v in terminal, issue a prompt: npm prompt in cmd is not an internal or external command solution
4. I confirm that nodejs is installed.
reason
1. Most of the path configuration problems are wrong, you can try to modify the path configuration.
2. If the configuration is changed, an error is still reported in vscode:
"The item 'node.exe' cannot be recognized as a cmdlet..." You can try restarting VScode, or open a terminal on the basis of the original terminal and retypeOrder.
3. Because I modified the path of the global configuration, the configuration path according to the online tutorial is wrong, a bloody 555, please pay attention to whether your system variables are where node.exe and npm.cmd are locatedpath.
Path Configuration
1. Open the search panel control.
2.
System Properties->Advanced->Environment variables
3. User variables->path,Change the original setting to: "D: own path ode_global", copy the directory where your own node_global global file is located.
4. System variable->path, note that the path here is the path where your node.exe and npm.cmd are located, don't change it
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
Redis - Basics
KVM虚拟化作业
Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
Many mock tools, this time I chose the right one
IDEA 配置方法注释自动参数
Windows系统Mysql8版本的安装教程
众多mock工具,这一次我选对了
apisix-Getting Started
【JWT】JWT 整合
SQL——左连接(Left join)、右连接(Right join)、内连接(Inner join)
随机推荐
《JUC并发编程 - 高级篇》06 - 共享模型之不可变(不可变类的设计 | 不可变类的使用 | 享元模式)
redis-enterprise use
强大的SQL计算利器-SPL
【Go事】一眼看穿 Go 的集合和切片
xmind使用指南(XMind具有下列哪些功能)
Single sign-on principle and implementation
Make your own dataset in FCN and train it
Experience innovation and iteration through the development of lucky draw mini-programs
[Virtualization ecological platform] Raspberry Pi installation virtualization platform operation process
面试、工作中常用sql大全(建议收藏备用)
unity computeshader的可读写buffer
2022/7/30
strings包详细文档+示例
2022/7/28
便利贴--46{基于移动端长页中分页加载逻辑封装}
Detailed explanation of SQL stored procedures
瑞吉外卖项目:新增菜品与菜品分页查询
MySQL index usage and optimization
1161. 最大层内元素和 (二叉树的层序遍历)
502 bad gateway原因、解决方法