install/build fails on node v9.7
See original GitHub issueyarn 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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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@damianobarbati https://github.com/lovell/sharp/issues/1143#issuecomment-370258870