node-sass: Should automatic compile if download failed.

  • NPM version (npm -v): 3.10.10
  • Node version (node -v): v6.9.4
  • Node Process (node -p process.versions):
{ http_parser: '2.7.0',
  node: '6.9.4',
  v8: '5.1.281.89',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '56.1',
  modules: '48',
  openssl: '1.0.2j' }
  • Node Platform (node -p process.platform): linux
  • Node architecture (node -p process.arch): x64
  • node-sass version (node -p "require('node-sass').info"):
node-sass	3.13.1	(Wrapper)	[JavaScript]
libsass  	3.3.6	(Sass Compiler)	[C/C++]
  • npm node-sass versions (npm ls node-sass):
linchang@0.0.0 /home/fengyu/projects/linchang/customer-client-wx
└─┬ angular-cli@1.0.0-beta.24
  └── node-sass@3.13.1 
 npm install node-sass

> node-sass@4.2.0 install /home/fengyu/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.2.0/linux-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.2.0/linux-x64-48_binding.node": 

ESOCKETTIMEDOUT

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

> node-sass@4.2.0 postinstall /home/fengyu/node_modules/node-sass
> node scripts/build.js

Binary found at /home/fengyu/node_modules/node-sass/vendor/linux-x64-48/binding.node
Testing binary
Bus error
npm WARN enoent ENOENT: no such file or directory, open '/home/fengyu/package.json'
npm WARN fengyu No description
npm WARN fengyu No repository field.
npm WARN fengyu No README data
npm WARN fengyu No license field.
npm ERR! Linux 4.4.0-59-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-sass"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! node-sass@4.2.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 135
npm ERR! 
npm ERR! Failed at the node-sass@4.2.0 postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/fengyu/npm-debug.log

Maybe it’s better to compile from source if download fail, just like many other packages.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

Sorry, you didn’t follow the issue template, so we can’t help you.