learnapollo / pokedex-react

A Pokedex App using and teaching Apollo and React
http://learnapollo.com
MIT License
47 stars 16 forks source link

can't start #12

Closed WayneUong closed 7 years ago

WayneUong commented 7 years ago
Waynes-MBP:exercise-01 wayneuong$ npm start

> pokedex-react@0.0.1 start /Users/wayneuong/pokedex-react/exercise-01
> react-scripts start

(node:4044) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:4044) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
WayneUong commented 7 years ago

Full log:

Waynes-MBP:exercise-01 wayneuong$ npm install
npm WARN deprecated @types/redux@3.6.0: This is a stub types definition for Redux (https://github.com/reactjs/redux). Redux provides its own type definitions, so you don't need @types/redux installed!
npm WARN deprecated @types/promises-a-plus@0.0.26: Use '--lib es6' to get Promise types.
npm WARN deprecated babel-preset-latest@6.14.0: 💥  preset-latest accomplishes the same task as babel-preset-env. 🙏  Please install it with 'npm install babel-preset-env --save-dev'. '{ "presets": ["latest"] }' to '{ "presets": ["env"] }'. For more info, please check the docs: http://babeljs.io/docs/plugins/preset-env 👌. And let us know how you're liking Babel at @babeljs on 🐦
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> fsevents@1.0.14 install /Users/wayneuong/Downloads/pokedex-react/exercise-01/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/Cellar/node/7.7.2/bin/node',
node-pre-gyp verb cli   '/Users/wayneuong/Downloads/pokedex-react/exercise-01/node_modules/fsevents/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.29
node-pre-gyp info using node@7.7.2 | darwin | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/Users/wayneuong/Downloads/pokedex-react/exercise-01/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v51-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v51-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.14 and node@7.7.2 (node-v51 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http Pre-built binary not available for your system, looked for https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v51-darwin-x64.tar.gz 
node-pre-gyp verb command build [ 'rebuild' ]
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  COPY /Users/wayneuong/Downloads/pokedex-react/exercise-01/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
  TOUCH Release/obj.target/action_after_build.stamp
node-pre-gyp info ok 
npm notice created a lockfile as package-lock.json. You should commit this file.
added 1015 packages in 38.375s
Waynes-MBP:exercise-01 wayneuong$ npm start

> pokedex-react@0.0.1 start /Users/wayneuong/Downloads/pokedex-react/exercise-01
> react-scripts start

(node:5408) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:5408) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
steve-ross commented 7 years ago

downgrade node to LTS or 7.7.1 (see closed issues)

marktani commented 7 years ago

Thanks @steve-ross! See #10 for more information.