最新文章:

您的位置: 富录-前端开发|web技术博客 > 系统环境 > Error: Cannot find module 'semver'的解决方法

Error: Cannot find module 'semver'的解决方法

发布时间:2017年05月05日 评论数:3阅读数: 66795

    好端端的,突然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'的解决方法
本文地址: https://www.arbays.com/post-3.html     本文已被百度收录!
版权声明:若无注明,本文皆为“富录-前端开发|web技术博客”原创,转载请保留文章出处。
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
提交评论

清空信息
关闭评论
kd 7 shoes for sale
kd 7 shoes for sale2018-06-12 10:31回复
#3
These will serve as your official Houston Astros minutes from MLB&#8217;s Winter Meetings at聽Marriot.
nike scarpe bambino
nike scarpe bambino2018-06-08 11:24回复
#2
Astros&#8217; outfielder Jake Marisnick, who played on the Marlins (2013-14) with Fern谩ndez: &#8220;On the field, off the field &#8211; everything he did was unreal.
puma california 2
puma california 22018-06-07 05:16回复
#1
He received an MRI the following day and his knee was deemed to be 鈥渟tructurally sound.