drupal-graphql / drupal-decoupled-app

Decoupled Drupal demo application based on React, GraphQL and Apollo including server-side rendering.
MIT License
311 stars 76 forks source link

front end installation fails #394

Closed martinfrances107 closed 6 years ago

martinfrances107 commented 6 years ago

Here is my first time user experience following the installation guide in README.md

cd backend && composer install --- works as expected

cd frontend && yarn install --- I am seeing warning and errors related to missing dependencies

Initially a bunch of warnings .. which seem easy enough to fix and then a fatal error .. I will list them below.. I am looking into this now .. but I think there is nothing here that cannot be resolved by tightening up some dependencies

A) Warning

warning " > apollo-cache-inmemory@1.1.5" has unmet peer dependency "graphql@0.11.7 || ^0.12.0". warning " > apollo-client@2.2.0" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0". warning " > apollo-link@1.0.7" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3". warning " > apollo-link-batch-http@1.0.4" has unmet peer dependency "graphql@^0.11.0 || ^0.12.3". warning " > apollo-link-http@1.3.2" has unmet peer dependency "graphql@^0.11.0". warning " > react-apollo@1.4.16" has unmet peer dependency "redux@^2.0.0 || ^3.0.0". warning "react-apollo > enzyme-adapter-react-16@1.1.0" has unmet peer dependency "enzyme@^3.0.0". warning " > react-router-preload@1.0.3" has unmet peer dependency "history@^4.7.2". warning "@amazee/react-scripts > @amazee/babel-preset-react@3.0.0" has unmet peer dependency "babel-runtime@^6.23.0". warning "@amazee/react-scripts > graphql-tag@2.6.0" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0". warning "@amazee/react-scripts > postcss-cssnext@3.0.2" has unmet peer dependency "caniuse-lite@^1.0.30000697". warning "@amazee/react-scripts > postcss-reporter@4.0.0" has unmet peer dependency "postcss@^6.0.0". warning "@amazee/react-scripts > react-test-renderer@15.6.2" has incorrect peer dependency "react@^15.6.2". warning "@amazee/react-scripts > stats-webpack-plugin@0.6.1" has incorrect peer dependency "webpack@^1.0||^2.1.0-beta||^2.2.0-rc".

B) The error

warning Error running install script for optional dependency: "/Users/martin/sites/drupal-decoupled-app/frontend/node_modules/fsevents: Command failed.\nExit code: 1\nCommand: node-pre-gyp install --fallback-to-build\nArguments: \nDirectory: /Users/martin/sites/drupal-decoupled-app/frontend/node_modules/fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using node-pre-gyp@0.6.39\nnode-pre-gyp info using node@9.3.0 | darwin | x64\nnode-pre-gyp info check checked for \"/Users/martin/sites/drupal-decoupled-app/frontend/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v59-darwin-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v59-darwin-x64.tar.gz\nnode-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.14 and node@9.3.0 (node-v59 ABI, unknown) (falling back to source compile with node-gyp) \nnode-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v59-darwin-x64.tar.gz \nnode-pre-gyp ERR! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)\nnode-pre-gyp ERR! stack at ChildProcess. (/Users/martin/sites/drupal-decoupled-app/frontend/node_modules/node-pre-gyp/lib/util/compile.js:77:29)\nnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:159:13)\nnode-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)\nnode-pre-gyp ERR! stack at onErrorNT (internal/child_process.js:389:16)\nnode-pre-gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:152:19)\nnode-pre-gyp ERR! System Darwin 17.3.0\nnode-pre-gyp ERR! command \"/usr/local/Cellar/node/9.3.0_1/bin/node\" \"/Users/martin/sites/drupal-decoupled-app/frontend/node_modules/fsevents/node_m✨ Done in 210.45s.