Cannot find module ‘../lib/utils/unsupported.js‘ npm重安装失败解决windows linux

windows

+ npm install
internal/modules/cjs/loader.js:605
    throw err;
    ^

Error: Cannot find module '../lib/utils/unsupported.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.Module._load (internal/modules/cjs/loader.js:529:25)
    at Module.require (internal/modules/cjs/loader.js:659:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at /usr/local/node-v11.4.0-linux-x64/bin/npm:19:21
    at Object.<anonymous> (/usr/local/node-v11.4.0-linux-x64/bin/npm:153:3)
    at Module._compile (internal/modules/cjs/loader.js:723:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:734:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
Build step 'Execute shell' marked build as failure

卸载node,删除C:\Users\电脑用户名\AppData\Roaming下npm 和npmcatch文件夹,重新安装node即可
问题是 npm没安装好,需要清理环境中留存文件.

在linux中也是

由于我是从其它服务器拷贝的node文件夹,经过度娘提示,重新下载tag包文件再解压,问题解决,步骤同安装npm一样

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值