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?
source
share