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

nodemon crashing when running for development #24

Open
GunnarGunnarsson opened this issue Aug 8, 2018 · 2 comments
Open

nodemon crashing when running for development #24

GunnarGunnarsson opened this issue Aug 8, 2018 · 2 comments

Comments

@GunnarGunnarsson
Copy link

I've been trying to run web-code with the steps given for development but nodemon keeps on crashing.
image

I'm running on Windows 10.
npm version: 5.6.0
node version: 8.11.3

@AdaRoseCannon
Copy link
Contributor

Sorry this definitely hasn't been tested for windows. The start command is a unix command you'll have to rewrite a similar windows shell command.

@GunnarGunnarsson
Copy link
Author

I fixed this by creating a script in the root directory with
#!/bin/sh rm web-code-3000.lock; npm run build; npm run build-server; npm run start;
and called it watch_script.sh.

Then I changed the watch script to
"watch": "nodemon --ignore static/scripts/bundle.js --ignore lib/web-code-stats.compiled.js --exec \"sh watch_script.sh\"",

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

2 participants