当前位置:网站首页>npm‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
npm‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件
2022-08-10 20:24:00 【九阈】
前言
安装了node.js之后,使用npm-v可能会提示 ‘npm’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
那么有可能是环境变量没设置好。
修复
Window10系统中,打开我的电脑-右键属性-高级系统设置-环境变量

双击Path
点击新建,在输入框中输入nodejs的具体地址,我的是:C:\Program Files\nodejs

重启cmd
PS
提供nodejs官方的下载地址,https://nodejs.org/en/ 全部选择默认安装即可。我选择 的是LTS版本
文章来源
https://blog.csdn.net/wangji5487/article/details/103887107
推荐
https://blog.csdn.net/weixin_41722928/article/details/82753022
边栏推荐
- 【语义分割】2017-PSPNet CVPR
- QSslSocket has not been declared
- 这7个自动化办公模版 教你玩转表格数据自动化
- 「POJ 3666」Making the Grade 题解(两种做法)
- 《分布式微服务电商》专题(一)-项目简介
- 铁蛋白颗粒Tf包载多肽/凝集素/细胞色素C/超氧化物歧化酶/多柔比星(定制服务)
- Kyligence 通过 SOC 2 Type II 审计,以可信赖的企业级产品服务全球客户
- 常用Anaconda安装错误解决办法Traceback (most recent call last):[通俗易懂]
- Pt/CeO2 monatomic nanoparticles enzyme | H - rGO - Pt @ Pd NPs enzyme | carbon nanotube load platinum nanoparticles peptide modified nano enzyme | leukemia antagonism FeOPtPEG composite nano enzyme
- cordova installation error Command failed: powershell solution
猜你喜欢

win10 xbox录屏功能不能录声音怎么办

UE4 - 河流流体插件Fluid Flux

svg+元素js实现在图片上描点成框,并获取相对图片的坐标位置

@Autowired注解 --required a single bean, but 2 were found出现的原因以及解决方法

Ferritin particle-loaded raltitrexed/pemetrexed/sulfadesoxine/adamantane (scientific research reagent)

转铁蛋白(TF)修饰紫杉醇(PTX)脂质体(TF-PTX-LP)|转铁蛋白(Tf)修饰姜黄素脂质体

铁蛋白-AHLL纳米颗粒|人表皮生长因子-铁蛋白重链亚基纳米粒子(EGF-5Cys-FTH1)|铁蛋白颗粒包载氯霉素Chloramphenicol-Ferritin

leetcode 84.柱状图中最大的矩形 单调栈应用

Heme - gold nanoparticles (Heme - AuNP) composite nanometer enzyme | gold nanoparticles nuclear porous hollow carbon nanometer spherical shell (Au @ HCNs) nano enzyme

导入FontForge生成字体
随机推荐
redis如何查看key的有效期
【SemiDrive源码分析】【MailBox核间通信】52 - DCF Notify 实现原理分析 及 代码实战
The 2021 ICPC Asia Shanghai Regional Programming Contest D、E
[CNN] Brush SOTA's trick
"Distributed Microservice E-commerce" Topic (1) - Project Introduction
关于 NFT 版权保护的争议
一次由groovy引起的fullGC问题排查
Apple Font Lookup
【语义分割】2016-SegNet TPAMI
Metasploit——渗透攻击模块(Exploit)
参天生长大模型:昇腾AI如何强壮模型开发与创新之根?
【图像分类】2018-MobileNetV2
MySQL查询数据库中的表和字段
苹果字体查找
2020 ICPC Shanghai Site G
机器学习|模型评估——AUC
Web3中值得关注的基础设施
多线程与高并发(五)—— 源码解析 ReentrantLock
壁仞推出全球最大算力芯片,号称以7nm超越英伟达4nm最新GPU
whois information collection & corporate filing information