node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

NPM Installation Issue

Open jamesdking opened this issue 9 years ago • 1 comments

Installing node-sass via npm install --save-dev node-sass fails with the attached errors.

The following excerpt from the log file seems like it may be significant:

Cannot download "https://github.com/sass/node-sass/releases/download/v4.3.0/win32-ia32-47_binding.node": 

read ECONNRESET

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g. 

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxy http://example.com:8080
  • NPM version (npm -v): 3.6.0
  • Node version (node -v): 5.7.0
  • Node Process (node -p process.versions):
{ 
http_parser: '2.6.2',
  node: '5.7.0',
  v8: '4.6.85.31',
  uv: '1.8.0',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '56.1',
  modules: '47',
  openssl: '1.0.2f' 
}
  • Node Platform (node -p process.platform): win32
  • Node architecture (node -p process.arch): ia32
  • node-sass version (node -p "require('node-sass').info"): n/a
  • npm node-sass versions (npm ls node-sass): n/a

npm.err.txt npm.log.txt

jamesdking avatar Jan 23 '17 12:01 jamesdking

Updated the error output to the significant portion. As you can see the binary download failed due to network issues.

As a results npm tried to build the binary locally which it could not because you do not have the requisite build tools installed.

Please check you're able to download https://github.com/sass/node-sass/releases/download/v4.3.0/win32-ia32-47_binding.node and try again.

xzyfer avatar Jan 23 '17 12:01 xzyfer