node-sass安装脚本忽略.npmrc设置

时间:2019-05-14 11:37:06

标签: npm node-sass

尝试在公司代理后面安装node-sass。我已经配置了nexus并将其设置在.npmrc

registry = http://dev/nexus/repository/npmjs_org/
strict-ssl = false
sass_binary_site = http://dev/nexus/repository/nodesass_downloads/

然后我尝试安装软件包

$ npm ci

> fsevents@1.2.7 install C:\***\ui\node_modules\fsevents
> node install


> fsevents@1.2.4 install C:\***\ui\node_modules\react-scripts\node_modules\fsevents
> node install


> node-sass@4.11.0 install C:\***\ui\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-57_binding.node":

getaddrinfo ENOTFOUND github.com github.com:443

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.11.0 postinstall C:\***\ui\node_modules\node-sass
> node scripts/build.js

.......

您可以看到sass_binary_site被完全忽略了。怎么了?

0 个答案:

没有答案