question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

install/build fails on node v9.7

See original GitHub issue
yarn v1.5.1
node v9.7.1
error An unexpected error occurred: "/Users/damz/Desktop/yarsk/node_modules/html5-webpack-plugin/node_modules/sharp: Command failed.
Exit code: 1
Command: sh
Arguments: -c node-gyp rebuild
Directory: /Users/damz/Desktop/yarsk/node_modules/html5-webpack-plugin/node_modules/sharp
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@9.7.1 | darwin | x64
gyp ERR! configure error 
gyp ERR! stack Error: Python executable \"/usr/local/bin/python\" is v3.6.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at PythonFinder.failPythonVersion (/usr/local/Cellar/node/9.7.1/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/Cellar/node/9.7.1/libexec/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:265:7)
gyp ERR! stack     at ChildProcess.emit (events.js:127:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:936:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:353:11)
gyp ERR! stack     at Socket.emit (events.js:127:13)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:558:12)
gyp ERR! System Darwin 17.4.0
gyp ERR! command \"/usr/local/Cellar/node/9.7.1/bin/node\" \"/usr/local/Cellar/node/9.7.1/libexec/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /Users/damz/Desktop/yarsk/node_modules/html5-webpack-plugin/node_modules/sharp
gyp ERR! node -v v9.7.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lovellcommented, Mar 4, 2018

Please note that the prebuild branch is temporary and will be removed without warning - the forthcoming sharp v0.20.0 will contain its work.

The salient error in the problem you encountered was Error: Python executable \"/usr/local/bin/python\" is v3.6.4, which is not supported by gyp. - see https://github.com/nodejs/node-gyp#installation

0reactions
lovellcommented, Mar 7, 2018

@damianobarbati https://github.com/lovell/sharp/issues/1143#issuecomment-370258870

“Please note that the prebuild branch is temporary and will be removed without warning - the forthcoming sharp v0.20.0 will contain its work.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM install fails with node-gyp - Stack Overflow
Option 1: Install Visual C++ Build Tools using the Default Install option. Option 2: Install Visual Studio 2015 (or modify an existing installation)...
Read more >
A Comprehensive Guide to Fixing Node-Gyp Issues on Windows
1. Try running npm install with the --no-optional flag. · 2. Try downloading the windows-build-tools package. · 3. Download the Visual Studio 2015 ......
Read more >
NPM install error - Material Design for Bootstrap
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >
Can't install NodeJS v9.7 on centos 6 - Server Fault
configure #step 8 make make install. Errors: make -C out BUILDTYPE=Release V=1 make[1]: Entering directory `/usr/local/src/node-v9.7.1/out' ...
Read more >
Set up NodeJS on native Windows - Microsoft Learn
Install nvm-windows, node.js, and npm; Install Visual Studio Code ... and avoid having to maintain both Linux and Windows build scripts, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found