Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Node-Gyp fails to execute
C:\misc\Sources\GitHub\reactjs.org>yarn
yarn install v1.1.0
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "react@16.0.0" is incompatible with requested version "react@^15.6.0"
warning Resolution field "react-dom@16.0.0" is incompatible with requested version "react-dom@^15.6.0"
[3/5] Fetching packages...
info fsevents@1.1.2: The platform "win32" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning "gatsby-react-router-scroll@1.0.1" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "gatsby-react-router-scroll@1.0.1" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "postcss-cssnext@2.11.0" has unmet peer dependency "caniuse-db@^1.0.30000652".
warning "react-router@4.1.1" has incorrect peer dependency "react@^15".
warning "react-router-dom@4.1.1" has incorrect peer dependency "react@^15".
warning "redbox-react@1.4.2" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning "redbox-react@1.4.2" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
warning "request-promise@4.2.2" has unmet peer dependency "request@^2.34".
warning "request-promise-core@1.1.1" has unmet peer dependency "request@^2.34".
[5/5] Building fresh packages...
[1/3] ⠠ uws
[2/3] ⠐ pngquant-bin
[3/3] ⠐ sharp: not ok
[-/3] ⠐ waiting...
error C:\misc\Sources\GitHub\reactjs.org\node_modules\sharp: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\misc\Sources\GitHub\reactjs.org\node_modules\sharp
Output:
C:\misc\Sources\GitHub\reactjs.org\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node
-gyp.js" rebuild ) else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@3.6.2
gyp info using node@8.5.0 | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\misc\Python\Python 3.5\python.EXE", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\misc\Sources\GitHub\reactjs.org\node_modules\sharp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.