Is it possible to install node-sass without booting from Github at the post install stage?

I'm behind a corporate firewall, proxying an npm repository using Nexus. During the post install phase, node-sass tries to curl from https://github.com/sass/node-sass/releases/download/v3.10.1/linux-x64-48_binding.node , but fails due to the firewall. Adding a firewall rule to skip a request is not an option. If it is also possible to proxy Github through Nexus, this may be an option, but I could not configure this configuration when I tried.

This is also for Jenkins build, so with the developer to do npm rebuild node-sassafter an unsuccessful installation is not an option. I need a setup to work, or a Jenkins build will fail.

Is there a way to install node-sass only from the npm registry, without downloading anything from other sources during the post-installation phase?

+4
source share
1 answer

I think you are looking

at .npmrc

sass_binary_site=http://yournexus/wherever/the/binary/lies

https://www.npmjs.com/package/node-sass#binary-configuration-parameters

+4
source

Source: https://habr.com/ru/post/1658457/


All Articles