当前位置:网站首页>(resolved) NPM suddenly reports an error cannot find module 'd:\program files\nodejs\node_ modules\npm\bin\npm-cli. js‘
(resolved) NPM suddenly reports an error cannot find module 'd:\program files\nodejs\node_ modules\npm\bin\npm-cli. js‘
2022-06-27 07:18:00 【Talking characters】
- When this problem occurred, I checked it on the Internet , They all said that they would go back to the next npm perhaps reinstall
- But in the inadvertent operation found Is the environment variable The order of
- perform npm The corresponding path will be found along the environment variable configuration

There is really no npm package 
But I thought about it again , my npm Configured with , The installation global package is not saved in this folder , Why did you come here to find
Then I checked the global environment variables

node.js That floor is in front , And this layer will face node.js/node_module Go inside and look for , Because I set node_global This is where I keep my overall package , therefore node.js/node_module There is no package at all .And if you didn't find it, you just stopped looking for it and reported an error ! So I changed the order ! The result is good

And then restart cmd, Input npm -v Just fine ! Magical and lucky . bug That's it - . -

边栏推荐
- POI export excle
- DMU software syntax highlighting VIM setting -- Learning Notes 6
- mysql关于自增和不能为空
- 聊聊领域驱动设计
- The interviewer of a large front-line factory asked: do you really understand e-commerce order development?
- OpenCV怎么下载?OpenCV下载后怎么配置?
- (已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘
- 云服务器配置ftp、企业官网、数据库等方法
- mssql如何使用语句导出并删除多表数据
- win10远程连接云服务器
猜你喜欢

面试官:你天天用 Lombok,说说它什么原理?我竟然答不上来…

Cloud-Native Database Systems at Alibaba: Opportunities and Challenges

Process termination (have you really learned recursion? Test your recursion Foundation)

Modeling competition - optical transport network modeling and value evaluation

2022 CISP-PTE(一)文件包含

(已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘

解决 Win10 Wsl2 IP 变化问题

2018 mathematical modeling competition - special clothing design for high temperature operation

(已解决) MINet 进行测试时报错如下 raise NotImplementedError

Centos7.9安装mysql 5.7,并设置开机启动
随机推荐
Solve the problem of win10 wsl2 IP change
manim 数学引擎
Guava scheduled task
Machine learning
Goodbye, agile Scrum
专业四第二周自测
Cloud-Native Database Systems at Alibaba: Opportunities and Challenges
Unsafe中的park和unpark
【软件工程】山东大学软件工程复习提纲
Unrecognized VM option ‘‘
Installation and functions of uview
Window right click management
如何优雅的写 Controller 层代码?
Bean拷贝详解
2018 mathematical modeling competition - special clothing design for high temperature operation
[openairinterface5g] rrcsetupcomplete for RRC NR resolution
Win10 remote connection to ECS
volatile 和 synchronized 到底啥区别?
hutool对称加密
winow10安装Nexus nexus-3.20.1-01