[GH-ISSUE #643] npm intall throwing error #458

Closed
opened 2026-02-26 02:33:16 +03:00 by kerem · 3 comments
Owner

Originally created by @sethigoldy-zz on GitHub (Aug 26, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/643

Hi

I am installing koel application on AWS servers. I am getting this following error while running

npm install

Please help me out

npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/.bin/node-sass as it wasn't installed by /var/www/html/koel/node_modules/node-sass
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/laravel-mix/node_modules/.bin/node-sass as it wasn't installed by /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/.bin/window-size as it wasn't installed by /var/www/html/koel/node_modules/window-size
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/request/node_modules/.bin/uuid as it wasn't installed by /var/www/html/koel/node_modules/request/node_modules/uuid
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/.bin/uuid as it wasn't installed by /var/www/html/koel/node_modules/node-uuid
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/espree/node_modules/.bin/acorn as it wasn't installed by /var/www/html/koel/node_modules/espree/node_modules/acorn
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/acorn-globals/node_modules/.bin/acorn as it wasn't installed by /var/www/html/koel/node_modules/acorn-globals/node_modules/acorn
npm WARN gentlyRm not removing /var/www/html/koel/node_modules/acorn-dynamic-import/node_modules/.bin/acorn as it wasn't installed by /var/www/html/koel/node_modules/acorn-dynamic-import/node_modules/acorn

node-sass@4.5.3 install /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-57_binding.node
Download complete .] - :
Binary saved to /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/ubuntu/.npm/node-sass/4.5.3/linux-x64-57_binding.node

node-sass@3.13.1 install /var/www/html/koel/node_modules/node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node":

HTTP error 404 Not Found

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.5.3 postinstall /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass
node scripts/build.js

Binary found at /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine

node-sass@3.13.1 postinstall /var/www/html/koel/node_modules/node-sass
node scripts/build.js

Building: /usr/bin/nodejs /var/www/html/koel/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/nodejs',
gyp verb cli '/var/www/html/koel/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.6.2
gyp info using node@8.4.0 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c "import platform; print(platform.python_version());" returned: "2.7.12\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.4.0
gyp verb command install [ '8.4.0' ]
gyp verb install input version string "8.4.0"
gyp verb install installing version: 8.4.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.4.0
gyp verb build dir attempting to create "build" dir: /var/www/html/koel/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /var/www/html/koel/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /var/www/html/koel/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /var/www/html/koel/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /var/www/html/koel/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/var/www/html/koel/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/var/www/html/koel/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/var/www/html/koel/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/ubuntu/.node-gyp/8.4.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/ubuntu/.node-gyp/8.4.0',
gyp info spawn args '-Dnode_gyp_dir=/var/www/html/koel/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/ubuntu/.node-gyp/8.4.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/var/www/html/koel/node_modules/node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/ubuntu/.node-gyp/8.4.0
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/var/www/html/koel/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/var/www/html/koel/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/var/www/html/koel/node_modules/which/which.js:80:29)
gyp ERR! stack at /var/www/html/koel/node_modules/which/which.js:89:16
gyp ERR! stack at /var/www/html/koel/node_modules/isexe/index.js:42:5
gyp ERR! stack at /var/www/html/koel/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.4.0-1022-aws
gyp ERR! command "/usr/bin/nodejs" "/var/www/html/koel/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/html/koel/node_modules/node-sass
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN sass-loader@5.0.1 requires a peer of node-sass@^4.0.0 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Originally created by @sethigoldy-zz on GitHub (Aug 26, 2017). Original GitHub issue: https://github.com/koel/koel/issues/643 Hi I am installing koel application on AWS servers. I am getting this following error while running `npm install` Please help me out npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead. npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated express@2.5.11: express 2.x series is deprecated npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated npm WARN gentlyRm not removing /var/www/html/koel/node_modules/.bin/node-sass as it wasn't installed by /var/www/html/koel/node_modules/node-sass npm WARN gentlyRm not removing /var/www/html/koel/node_modules/laravel-mix/node_modules/.bin/node-sass as it wasn't installed by /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass npm WARN gentlyRm not removing /var/www/html/koel/node_modules/.bin/window-size as it wasn't installed by /var/www/html/koel/node_modules/window-size npm WARN gentlyRm not removing /var/www/html/koel/node_modules/request/node_modules/.bin/uuid as it wasn't installed by /var/www/html/koel/node_modules/request/node_modules/uuid npm WARN gentlyRm not removing /var/www/html/koel/node_modules/.bin/uuid as it wasn't installed by /var/www/html/koel/node_modules/node-uuid npm WARN gentlyRm not removing /var/www/html/koel/node_modules/espree/node_modules/.bin/acorn as it wasn't installed by /var/www/html/koel/node_modules/espree/node_modules/acorn npm WARN gentlyRm not removing /var/www/html/koel/node_modules/acorn-globals/node_modules/.bin/acorn as it wasn't installed by /var/www/html/koel/node_modules/acorn-globals/node_modules/acorn npm WARN gentlyRm not removing /var/www/html/koel/node_modules/acorn-dynamic-import/node_modules/.bin/acorn as it wasn't installed by /var/www/html/koel/node_modules/acorn-dynamic-import/node_modules/acorn > node-sass@4.5.3 install /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/linux-x64-57_binding.node Download complete .] - : Binary saved to /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass/vendor/linux-x64-57/binding.node Caching binary to /home/ubuntu/.npm/node-sass/4.5.3/linux-x64-57_binding.node > node-sass@3.13.1 install /var/www/html/koel/node_modules/node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node": HTTP error 404 Not Found 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.5.3 postinstall /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass > node scripts/build.js Binary found at /var/www/html/koel/node_modules/laravel-mix/node_modules/node-sass/vendor/linux-x64-57/binding.node Testing binary Binary is fine > node-sass@3.13.1 postinstall /var/www/html/koel/node_modules/node-sass > node scripts/build.js Building: /usr/bin/nodejs /var/www/html/koel/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/nodejs', gyp verb cli '/var/www/html/koel/node_modules/node-gyp/bin/node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' ] gyp info using node-gyp@3.6.2 gyp info using node@8.4.0 | linux | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` succeeded python2 /usr/bin/python2 gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.12\n" gyp verb get node dir no --target version specified, falling back to host node version: 8.4.0 gyp verb command install [ '8.4.0' ] gyp verb install input version string "8.4.0" gyp verb install installing version: 8.4.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 8.4.0 gyp verb build dir attempting to create "build" dir: /var/www/html/koel/node_modules/node-sass/build gyp verb build dir "build" dir needed to be created? /var/www/html/koel/node_modules/node-sass/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /var/www/html/koel/node_modules/node-sass/build/config.gypi gyp verb config.gypi checking for gypi file: /var/www/html/koel/node_modules/node-sass/config.gypi gyp verb common.gypi checking for gypi file: /var/www/html/koel/node_modules/node-sass/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn /usr/bin/python2 gyp info spawn args [ '/var/www/html/koel/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/var/www/html/koel/node_modules/node-sass/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/var/www/html/koel/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/ubuntu/.node-gyp/8.4.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/ubuntu/.node-gyp/8.4.0', gyp info spawn args '-Dnode_gyp_dir=/var/www/html/koel/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/ubuntu/.node-gyp/8.4.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/var/www/html/koel/node_modules/node-sass', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir /home/ubuntu/.node-gyp/8.4.0 gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/var/www/html/koel/node_modules/which/which.js:13:12) gyp ERR! stack at F (/var/www/html/koel/node_modules/which/which.js:68:19) gyp ERR! stack at E (/var/www/html/koel/node_modules/which/which.js:80:29) gyp ERR! stack at /var/www/html/koel/node_modules/which/which.js:89:16 gyp ERR! stack at /var/www/html/koel/node_modules/isexe/index.js:42:5 gyp ERR! stack at /var/www/html/koel/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) gyp ERR! System Linux 4.4.0-1022-aws gyp ERR! command "/usr/bin/nodejs" "/var/www/html/koel/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /var/www/html/koel/node_modules/node-sass gyp ERR! node -v v8.4.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok Build failed with error code: 1 npm WARN sass-loader@5.0.1 requires a peer of node-sass@^4.0.0 but none was installed. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.13.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
kerem closed this issue 2026-02-26 02:33:16 +03:00
Author
Owner

@phanan commented on GitHub (Aug 26, 2017):

npm WARN sass-loader@5.0.1 requires a peer of node-sass@^4.0.0 but none was installed.

<!-- gh-comment-id:325163746 --> @phanan commented on GitHub (Aug 26, 2017): > npm WARN sass-loader@5.0.1 requires a peer of node-sass@^4.0.0 but none was installed.
Author
Owner

@sethigoldy-zz commented on GitHub (Aug 27, 2017):

Hi

I have tried installing node-sass@4.0.0 using the command

npm install -g node-sass@4.0.0

It gives me this error ERROR

<!-- gh-comment-id:325178340 --> @sethigoldy-zz commented on GitHub (Aug 27, 2017): Hi I have tried installing node-sass@4.0.0 using the command `npm install -g node-sass@4.0.0` It gives me this error [ERROR](https://gist.github.com/sethigoldy/b3d5312bb32583dc4a475894f4e92035)
Author
Owner

@phanan commented on GitHub (Aug 27, 2017):

It says you don't have make. Nevertheless, this doesn't look like a Koel issue. I'm going ahead and close this now. You're welcome to open another if you're sure it's related to Koel.

<!-- gh-comment-id:325183593 --> @phanan commented on GitHub (Aug 27, 2017): It says you don't have `make`. Nevertheless, this doesn't look like a Koel issue. I'm going ahead and close this now. You're welcome to open another if you're sure it's related to Koel.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#458
No description provided.