小编Cri*_*viu的帖子

无法下载 node-sass HTTP 错误 404 Not found --- Node Gyp 错误

我正在从事一个 Angular 实习项目,在尝试从 NgPrime 安装一些模块后,每次运行npm install有关时,我都会收到以下错误:

  1. node-sass(无法下载)
  2. 节点-gyp

这是运行 npm install 后得到的结果:

> node-sass@4.10.0 install C:\Users\flaviu.cristian\Desktop\BSS\TrackGPS.BSS.Web\node_modules\@angular-devkit\build-angular\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.10.0/win32-x64-72_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.10.0/win32-x64-72_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

> node-sass@4.10.0 postinstall C:\Users\flaviu.cristian\Desktop\BSS\TrackGPS.BSS.Web\node_modules\@angular-devkit\build-angular\node_modules\node-sass
> node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\Users\flaviu.cristian\Desktop\BSS\TrackGPS.BSS.Web\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info …
Run Code Online (Sandbox Code Playgroud)

node.js node-gyp node-sass

3
推荐指数
1
解决办法
4854
查看次数

标签 统计

node-gyp ×1

node-sass ×1

node.js ×1