I have followed the steps to set up the project .
But after run npm start run , i run into this error .. do i need to install some other package. I m a starter in graphql. need help!
graphqlApiNodeDemo@1.0.0 start C:\Users\mypc\Desktop\graphql-mysql
npm run init-db && npx nodemon --exec babel-node server.js
graphqlApiNodeDemo@1.0.0 init-db C:\Users\mypc\Desktop\graphql-mysql
cd /opt/lampp/bin/ && echo 'DROP DATABASE IF EXISTS api_node_demo; CREATE DATABASE api_node_demo CHARACTER SET utf8 COLLATE utf8_general_ci' | ./mysql -u root && cd -
The system cannot find the path specified.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! graphqlApiNodeDemo@1.0.0 init-db: cd /opt/lampp/bin/ && echo 'DROP DATABASE IF EXISTS api_node_demo; CREATE DATABASE api_node_demo CHARACTER SET utf8 COLLATE utf8_general_ci' | ./mysql -u root && cd -
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the graphqlApiNodeDemo@1.0.0 init-db script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mypc\AppData\Roaming\npm-cache_logs\2020-04-29T11_34_49_787Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! graphqlApiNodeDemo@1.0.0 start: npm run init-db && npx nodemon --exec babel-node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the graphqlApiNodeDemo@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mypc\AppData\Roaming\npm-cache_logs\2020-04-29T11_34_49_924Z-debug.log
I have followed the steps to set up the project .
But after run npm start run , i run into this error .. do i need to install some other package. I m a starter in graphql. need help!
The system cannot find the path specified.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! graphqlApiNodeDemo@1.0.0 init-db:
cd /opt/lampp/bin/ && echo 'DROP DATABASE IF EXISTS api_node_demo; CREATE DATABASE api_node_demo CHARACTER SET utf8 COLLATE utf8_general_ci' | ./mysql -u root && cd -npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the graphqlApiNodeDemo@1.0.0 init-db script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mypc\AppData\Roaming\npm-cache_logs\2020-04-29T11_34_49_787Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! graphqlApiNodeDemo@1.0.0 start:
npm run init-db && npx nodemon --exec babel-node server.jsnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the graphqlApiNodeDemo@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mypc\AppData\Roaming\npm-cache_logs\2020-04-29T11_34_49_924Z-debug.log