Skip to content

install/build fails on node v9.7 #1143

Closed
@damianobarbati

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions