Skip to content

How to resolve the error and to run the code successfully, #4

Description

@anoop151

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions