Is this possible to install node-sass offline proxy

e2rabi picture e2rabi · Feb 20, 2018 · Viewed 14.3k times · Source

I'm trying to install node-sass module using npm but each time an error displayed about a problem in network configuration that's because i'm using proxy and private registry this is the error :

This is most likely not a problem with node-gyp or the package itself and is related to network connectivity In most cases you are behind a proxy or have bad network setting 

enter image description here

Is it possible to install this module offline ?

Answer

Stanley S picture Stanley S · Feb 20, 2018

I had a similar problem, while trying to install node-sass behind a corporate proxy.

What you can try is:

  1. Download it locally from here:https://github.com/sass/node-sass/releases (choose the right one depending on your OS)
  2. Use the binary configuration parameter –sass-binary-path. to install it.

    npm install --sass-binary-path="C:\src\v4.7.2\win32-x64-57_binding.node"