Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running backend using npm run dev #3

Open
htRightPoint opened this issue Sep 1, 2022 · 4 comments
Open

Error in running backend using npm run dev #3

htRightPoint opened this issue Sep 1, 2022 · 4 comments

Comments

@htRightPoint
Copy link

[nodemon] 2.0.7
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting babel-node ./src/server.js
'babel-node' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...

@seyyed-sina
Copy link

get the same error here

@Mohamed-Esmat
Copy link

I have the same error too, i tried every method to fix this but i couldn't

@uthamprabhu
Copy link

Have anyone solved the above error till now? If yes pls send solution...

@uthamprabhu
Copy link

[nodemon] 2.0.7 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,json [nodemon] starting babel-node ./src/server.js 'babel-node' is not recognized as an internal or external command, operable program or batch file. [nodemon] app crashed - waiting for file changes before starting...

For the above error I changed my scripts > "dev:" to "npx nodemon --exec npx babel-node src/server.js" (look folder package.json)
ignore the caniuse update
then you might wanna think of changing the localhost to 127.0.0.1 from the db.js file
that worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants