Requirements:
- Nexus
- Nexus being able to contact github.com
- GitHub.com being defined as a separate remote repository
Problem:
node-sass
is dependent on a file that exists on ze internetz. When trying to auto-install this dependency, npm tries to download it directly from github.com. As this is forbidden through policies/firewalls, it is not that feasable. It is also not that simple to just forward through a normal NPM-repository, as it is not actually hosted in one.
Solution:
In order to enable node-sass
downloading:
Add the following to your .npmrc
-file:
sass_binary_site=https://your-nexus-host/repository/github-group/sass/node-sass/releases/download
https://github.com is proxied through Nexus at https://your-nexus-host/repository/github-group