Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install/build fails on node v9.7 #1143

Closed
damianobarbati opened this issue Mar 4, 2018 · 6 comments
Closed

install/build fails on node v9.7 #1143

damianobarbati opened this issue Mar 4, 2018 · 6 comments

Comments

@damianobarbati
Copy link

damianobarbati commented Mar 4, 2018

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
@damianobarbati
Copy link
Author

Solved with lovell/sharp#prebuild

@lovell
Copy link
Owner

lovell commented 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

@damianobarbati
Copy link
Author

In the forthcoming 0.20.0 will node-gyp still be required?

@lovell
Copy link
Owner

lovell commented Mar 4, 2018

@damianobarbati node-gyp will no longer be required for most versions of Node on the most common platforms, which includes OS X. Please see #186 for full details.

@damianobarbati
Copy link
Author

damianobarbati commented Mar 6, 2018

@lovell not sure what's going on today: I just run a npm update and I can't install sharp anymore.
Still node v9.7.1
error An unexpected error occurred: "Couldn't find match for \"prebuild\" in \"refs/heads/master,refs/pull/101/head,refs/pull/101/merge,refs/pull/102/head,refs/pull/1023/head,refs/pull/1023/merge,refs/pull/1024/head,refs/pull/1032/head,refs/pull/1032/merge,refs/pull/1038/head,refs/pull/106/head,refs/pull/107/head,refs/pull/1077/head,refs/pull/1079/head,refs/pull/11/head,refs/pull/111/head,refs/pull/1111/head,refs/pull/1111/merge,refs/pull/1121/head,refs/pull/1142/head,refs/pull/124/head,refs/pull/124/merge,refs/pull/13/head,refs/pull/13/merge,refs/pull/14/head,refs/pull/146/head,refs/pull/146/merge,refs/pull/15/head,refs/pull/156/head,refs/pull/160/head,refs/pull/161/head,refs/pull/165/head,refs/pull/166/head,refs/pull/171/head,refs/pull/173/head,refs/pull/175/head,refs/pull/18/head,refs/pull/192/head,refs/pull/194/head,refs/pull/198/head,refs/pull/20/head,refs/pull/20/merge,refs/pull/205/head,refs/pull/205/merge,refs/pull/207/head,refs/pull/211/head,refs/pull/211/merge,refs/pull/213/head,refs/pull/22/head,refs/pull/244/head,refs/pull/25/head,refs/pull/255/head,refs/pull/263/head,refs/pull/266/head,refs/pull/271/head,refs/pull/271/merge,refs/pull/272/head,refs/pull/272/merge,refs/pull/280/head,refs/pull/282/head,refs/pull/286/head,refs/pull/287/head,refs/pull/288/head,refs/pull/291/head,refs/pull/302/head,refs/pull/302/merge,refs/pull/303/head,refs/pull/305/head,refs/pull/306/head,refs/pull/307/head,refs/pull/308/head,refs/pull/308/merge,refs/pull/309/head,refs/pull/316/head,refs/pull/334/head,refs/pull/334/merge,refs/pull/335/head,refs/pull/335/merge,refs/pull/351/head,refs/pull/359/head,refs/pull/361/head,refs/pull/368/head,refs/pull/374/head,refs/pull/374/merge,refs/pull/38/head,refs/pull/384/head,refs/pull/384/merge,refs/pull/385/head,refs/pull/385/merge,refs/pull/39/head,refs/pull/393/head,refs/pull/393/merge,refs/pull/397/head,refs/pull/399/head,refs/pull/402/head,refs/pull/404/head,refs/pull/408/head,refs/pull/419/head,refs/pull/425/head,refs/pull/425/merge,refs/pull/426/head,refs/pull/426/merge,refs/pull/439/head,refs/pull/440/head,refs/pull/440/merge,refs/pull/443/head,refs/pull/448/head,refs/pull/456/head,refs/pull/465/head,refs/pull/473/head,refs/pull/479/head,refs/pull/480/head,refs/pull/484/head,refs/pull/484/merge,refs/pull/49/head,refs/pull/492/head,refs/pull/496/head,refs/pull/497/head,refs/pull/498/head,refs/pull/499/head,refs/pull/500/head,refs/pull/501/head,refs/pull/503/head,refs/pull/503/merge,refs/pull/504/head,refs/pull/51/head,refs/pull/511/head,refs/pull/513/head,refs/pull/516/head,refs/pull/516/merge,refs/pull/519/head,refs/pull/52/head,refs/pull/52/merge,refs/pull/520/head,refs/pull/520/merge,refs/pull/540/head,refs/pull/55/head,refs/pull/550/head,refs/pull/550/merge,refs/pull/569/head,refs/pull/569/merge,refs/pull/570/head,refs/pull/581/head,refs/pull/593/head,refs/pull/593/merge,refs/pull/596/head,refs/pull/596/merge,refs/pull/61/head,refs/pull/61/merge,refs/pull/617/head,refs/pull/617/merge,refs/pull/622/head,refs/pull/623/head,refs/pull/644/head,refs/pull/644/merge,refs/pull/654/head,refs/pull/654/merge,refs/pull/656/head,refs/pull/663/head,refs/pull/675/head,refs/pull/676/head,refs/pull/68/head,refs/pull/685/head,refs/pull/691/head,refs/pull/732/head,refs/pull/735/head,refs/pull/738/head,refs/pull/742/head,refs/pull/742/merge,refs/pull/748/head,refs/pull/754/head,refs/pull/754/merge,refs/pull/760/head,refs/pull/769/head,refs/pull/769/merge,refs/pull/783/head,refs/pull/790/head,refs/pull/790/merge,refs/pull/791/head,refs/pull/798/head,refs/pull/798/merge,refs/pull/813/head,refs/pull/814/head,refs/pull/824/head,refs/pull/825/head,refs/pull/825/merge,refs/pull/828/head,refs/pull/83/head,refs/pull/857/head,refs/pull/87/head,refs/pull/87/merge,refs/pull/888/head,refs/pull/906/head,refs/pull/906/merge,refs/pull/91/head,refs/pull/91/merge,refs/pull/913/head,refs/pull/915/head,refs/pull/919/head,refs/pull/924/head,refs/pull/924/merge,refs/pull/925/head,refs/pull/925/merge,refs/pull/94/head,refs/pull/940/head,refs/pull/940/merge,refs/pull/945/head,refs/pull/954/head,refs/pull/954/merge,refs/pull/956/head,refs/pull/956/merge,refs/pull/960/head,refs/pull/974/head,refs/pull/974/merge,refs/pull/975/head,refs/pull/976/head,refs/pull/977/head,refs/pull/986/head,refs/pull/986/merge,refs/pull/990/head,refs/pull/990/merge,refs/pull/991/head,refs/pull/991/merge,refs/pull/992/head,refs/tags/v0.0.1,refs/tags/v0.0.2,refs/tags/v0.0.3,refs/tags/v0.0.4,refs/tags/v0.0.5,refs/tags/v0.0.6,refs/tags/v0.0.8,refs/tags/v0.0.9,refs/tags/v0.1.0,refs/tags/v0.1.1,refs/tags/v0.1.2,refs/tags/v0.1.3,refs/tags/v0.1.4,refs/tags/v0.1.5,refs/tags/v0.1.6,refs/tags/v0.1.7,refs/tags/v0.1.8,refs/tags/v0.10.0,refs/tags/v0.10.1,refs/tags/v0.11.0,refs/tags/v0.11.1,refs/tags/v0.11.2,refs/tags/v0.11.3,refs/tags/v0.11.4,refs/tags/v0.12.0,refs/tags/v0.12.1,refs/tags/v0.12.2,refs/tags/v0.13.0,refs/tags/v0.13.1,refs/tags/v0.14.0,refs/tags/v0.14.1,refs/tags/v0.15.0,refs/tags/v0.15.1,refs/tags/v0.16.0,refs/tags/v0.16.1,refs/tags/v0.16.2,refs/tags/v0.17.0,refs/tags/v0.17.1,refs/tags/v0.17.2,refs/tags/v0.17.3,refs/tags/v0.18.0,refs/tags/v0.18.1,refs/tags/v0.18.2,refs/tags/v0.18.3,refs/tags/v0.18.4,refs/tags/v0.19.0,refs/tags/v0.19.1,refs/tags/v0.2.0,refs/tags/v0.20.0,refs/tags/v0.3.0,refs/tags/v0.4.0,refs/tags/v0.4.1,refs/tags/v0.4.2,refs/tags/v0.5.0,refs/tags/v0.5.1,refs/tags/v0.5.2,refs/tags/v0.6.0,refs/tags/v0.6.1,refs/tags/v0.6.2,refs/tags/v0.7.0,refs/tags/v0.7.1,refs/tags/v0.7.2,refs/tags/v0.8.0,refs/tags/v0.8.1,refs/tags/v0.8.2,refs/tags/v0.8.3,refs/tags/v0.8.4,refs/tags/v0.9.0,refs/tags/v0.9.1,refs/tags/v0.9.2,refs/tags/v0.9.3\" for \"https://github.com/lovell/sharp.git\".".

@lovell
Copy link
Owner

lovell commented Mar 7, 2018

@damianobarbati #1143 (comment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants