sass / node-sass

:rainbow: Node.js bindings to libsass
https://npmjs.org/package/node-sass
MIT License
8.51k stars 1.33k forks source link

npm install --only=dev doesn't work, while npm ci and npm install do #2957

Open vadimyen opened 4 years ago

vadimyen commented 4 years ago

Everything is okay when i use plain npm install or npm ci, but now I want to install just devDeps in some jobs on CI and try running the command npm install --only=dev as non-root user (as usual), but get the error locally and on CI:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 install: node scripts/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.14.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/vadim/.npm/_logs/2020-08-16T08_43_54_641Z-debug.log

The content of /home/vadim/.npm/_logs/2020-08-16T08_43_54_641Z-debug.log:

36150 verbose stack Error: node-sass@4.14.1 install: node scripts/install.js 36150 verbose stack Exit status 1 36150 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 36150 verbose stack at EventEmitter.emit (events.js:315:20) 36150 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 36150 verbose stack at ChildProcess.emit (events.js:315:20) 36150 verbose stack at maybeClose (internal/child_process.js:1021:16) 36150 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 36151 verbose pkgid node-sass@4.14.1 36152 verbose cwd /home/vadim/SMENA/site-frontend 36153 verbose Linux 5.4.0-42-generic 36154 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--only=dev" 36155 verbose node v12.18.2 36156 verbose npm v6.14.7 36157 error code ELIFECYCLE 36158 error errno 1 36159 error node-sass@4.14.1 install: node scripts/install.js 36159 error Exit status 1 36160 error Failed at the node-sass@4.14.1 install script. 36160 error This is probably not a problem with npm. There is likely additional logging output above. 36161 verbose exit [ 1, true ]

What can be the reason of that?

vadimyen commented 4 years ago

hello!

YensZAF commented 4 years ago

I have the same issue when using npm install --save-dev

YensZAF commented 4 years ago

The error given below:

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

HTTP error 404 Not Found

When looking on github there is no linux-x64-88_binding.node under v4.14.1

npm -v = 6.14.9 node -v = 15.2.1