web-code icon indicating copy to clipboard operation
web-code copied to clipboard

nodemon crashing when running for development

Open GunnarGunnarsson opened this issue 7 years ago • 2 comments

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

GunnarGunnarsson avatar Aug 08 '18 08:08 GunnarGunnarsson

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.

AdaRoseCannon avatar Aug 10 '18 18:08 AdaRoseCannon

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\"",

GunnarGunnarsson avatar Dec 13 '18 15:12 GunnarGunnarsson