Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this possible to install node-sass offline proxy

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 ?

like image 338
e2rabi Avatar asked Feb 20 '18 10:02

e2rabi


Video Answer


1 Answers

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"

like image 105
Stanley S Avatar answered Oct 06 '22 01:10

Stanley S