最新文章:
- 腾讯九年,他为何选择辞职
- 为什么CTO、技术总监、架构师都不写代码,还这么牛逼
- 有道云笔记MAC客户端无法同步解决办法
- Chrome88稳定版已发布,不再支持 Flash
- node.js版本管理工具n的使用
您的位置:
富录-前端开发|web技术博客
>
系统环境 >
Error: Cannot find module 'semver'的解决方法
Error: Cannot find module 'semver'的解决方法
发布时间:2017年05月05日 评论数:3阅读数: 50063
好端端的,突然npm不能用了,老是报错,报错信息如下:
throw err; ^ Error: Cannot find module 'semver' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\Users\admin\AppData\Roaming\npm\node_modules\npm\l ib\config\defaults.js:6:14) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17)
这下好了,没得玩了,连npm -v都没用了。咋整呢?卸载重装node有用吗?很遗憾告诉你没这么简单,还差些步骤……
处理方法:
在C:\Users\D\AppData\Roaming这个路径下的npm文件夹删了;然后重新安装node,搞定!
本文作者:DGF
文章标题:
Error: Cannot find module 'semver'的解决方法
本文地址: http://arbays.com/post-3.html  本文已被百度收录!
版权声明:若无注明,本文皆为“富录-前端开发|web技术博客”原创,转载请保留文章出处。
本文地址: http://arbays.com/post-3.html  本文已被百度收录!
版权声明:若无注明,本文皆为“富录-前端开发|web技术博客”原创,转载请保留文章出处。
相关文章
- node 环境配置
- git的.gitignore文件不起作用的解决办法
- 推荐一个好用的VPN
- node启动本地服务报Error: listen EADDRINUSE :::8888的解决方法
- http升级https(SSL证书安装)
- 项目部署之 mongodb 安装与配置
- 解决win10下Prolific USB-to-Serial Comm Port驱动无法使用的问题
- django1.11 启动错误:Generator expression must be parenthesized
- sublime text3最新版注册码(build 3211)
- SublimeRPEL快捷键设置及解决快捷键无响应的问题
kd 7 shoes for sale2018-06-12 10:31回复
#3
These will serve as your official Houston Astros minutes from MLB’s Winter Meetings at聽Marriot.
nike scarpe bambino2018-06-08 11:24回复
#2
Astros’ outfielder Jake Marisnick, who played on the Marlins (2013-14) with Fern谩ndez: “On the field, off the field – everything he did was unreal.
puma california 22018-06-07 05:16回复
#1
He received an MRI the following day and his knee was deemed to be 鈥渟tructurally sound.