gyp info it worked if it ends with ok npm ERR 解决办法

今天换电脑启动老项目,发现一直启动不了。报如下的错误,其实很简单,问题出在了NodeJs上。我安装的Node版本是最新的,也就是v16.xxx,这就是问题所在。只要把Node版本换成低版本的就行了。我自己换的是V14.16.0

1. 先卸载自己电脑上的Node

自行百度怎么卸载。

2. 挑选适合自己的Node版本。

我是Node历史版本地址链接

3. 下载安装文件

64位下载这个
64位下载箭头指的.msi文件就好了。

4. 安装

安装就直接点下一步就好了。

附上报错信息

> [email protected] install E:web_hwfVue02app
ode_modules
ode-sass
 
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-64_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.
      export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
      npm config set proxy http://example.com:8080
> [email protected] postinstall E:web_hwfVue02app
ode_modules
ode-sass
> node scripts/build.js
Building: E:26_nodejs
ode.exe E:web_hwfVue02app
ode_modules
ode-gypin
ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'E:\26_nodejs

ode.exe’,
gyp verb cli ‘E:\web_hwf\Vue\02app
ode_modules
ode-gyp\bin
ode-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsa

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值