akryum / apollo-server-example Goto Github PK
View Code? Open in Web Editor NEWA very simple Apollo GraphQL server
A very simple Apollo GraphQL server
After npm install
and npm run dev
I was getting the following:
> [email protected] dev /home/laurent/nodejs/apollo-server-example
> nodemon index.js --exec babel-node --presets es2015
[nodemon] 1.10.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `babel-node index.js --presets es2015`
sh: 1: babel-node: not found
[nodemon] failed to start process, "babel-node" exec not found
events.js:165
throw err;
^
Error: Uncaught, unspecified "error" event. (127)
at Bus.emit (events.js:163:17)
at ChildProcess.<anonymous> (/home/laurent/nodejs/apollo-server-example/node_modules/nodemon/lib/monitor/run.js:118:11)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! node v6.7.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: `nodemon index.js --exec babel-node --presets es2015`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script 'nodemon index.js --exec babel-node --presets es2015'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the apollo-server-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! nodemon index.js --exec babel-node --presets es2015
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs apollo-server-example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls apollo-server-example
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/laurent/nodejs/apollo-server-example/npm-debug.log
I had to do npm install --save-dev babel-cli
to make it work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.