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 build/bundle.js issue on Windows #6

Open
leopoldkristjansson opened this issue Dec 21, 2017 · 7 comments
Open

Nodemon build/bundle.js issue on Windows #6

leopoldkristjansson opened this issue Dec 21, 2017 · 7 comments

Comments

@leopoldkristjansson
Copy link

leopoldkristjansson commented Dec 21, 2017

I am running windows 8.1 and Node 7.1.0

I was having trouble running:

"dev:server": "nodemon --watch build --exec \"node build/bundle.js\""

until I removed the \" like so:

"dev:server": "nodemon --watch build --exec node build/bundle.js"

The error I got was:

Error

@davidhenley
Copy link

Look at your error. You put in an extra backslash

@leopoldkristjansson
Copy link
Author

leopoldkristjansson commented Dec 22, 2017

I didn't put anything in there. I just pulled directly from the repo: https://github.com/StephenGrider/ReactSSRCasts/blob/master/server/package.json

@milosmijakovac
Copy link

milosmijakovac commented Jan 23, 2018

i had that issue myself, when i was building a server .. on command npm run dev:server, it was always rejecting me with that message "[nodemon] app crashed - waiting for file changes before starting".
In my case it looked like this:

my package.json was:

"scripts": {
"dev:server": "nodemon --watch build --exec node \"build/bundle.js\"",
"dev:build:server": "webpack --config webpack.server.js --watch"
},
so i just removed those escaping backslashes and everything worked fine.

"scripts": {
"dev:server": "nodemon --watch build --exec node build/bundle.js",
"dev:build:server": "webpack --config webpack.server.js --watch"
}

@DenisMartsyniuk
Copy link

Hi

When i write
"dev:server": "nodemon --watch build --exec node build/bundle.js",

i have error

$ npm run dev:server

[email protected] dev:server D:\Git\Nestoria
nodemon --watch build --exec node build/bundle.js

[nodemon] 1.12.0
[nodemon] to restart at any time, enter rs
[nodemon] watching: D:\Git\Nestoria\build/**/*
[nodemon] starting node build/bundle.js
events.js:137
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::3000
at Object._errnoException (util.js:1003:13)
at _exceptionWithHostPort (util.js:1024:20)
at Server.setupListenHandle [as _listen2] (net.js:1367:14)
at listenInCluster (net.js:1408:12)
at Server.listen (net.js:1496:7)
at Function.listen (D:\Git\Nestoria\build\bundle.js:7899:24)
at Object. (D:\Git\Nestoria\build\bundle.js:7070:5)
at webpack_require (D:\Git\Nestoria\build\bundle.js:20:30)
at D:\Git\Nestoria\build\bundle.js:63:18
at Object. (D:\Git\Nestoria\build\bundle.js:66:10)
[nodemon] app crashed - waiting for file changes before starting...

@davidhenley
Copy link

Type killall node

@DenisMartsyniuk
Copy link

Yes, I must turn off
node build/bundle.js

ctr+C

@NangoliJude
Copy link

NangoliJude commented Sep 14, 2018

"dev:server": "nodemon --watch build --exec node build/bundle.js",
"dev:build:server": "webpack --config webpack.server.js --watch"

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

5 participants