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

Could not run nodemon #9

Open
ShintaroNippon opened this issue May 25, 2019 · 3 comments
Open

Could not run nodemon #9

ShintaroNippon opened this issue May 25, 2019 · 3 comments

Comments

@ShintaroNippon
Copy link

I'm facing this issue

[email protected] dev /home/shintaro/Desktop/projects/github/frontend
nodemon app.js

[nodemon] 1.19.0
[nodemon] reading config ./nodemon.json
[nodemon] to restart at any time, enter rs
[nodemon] or send SIGHUP to 20111 to restart
[nodemon] ignoring: ./node_modules//* ./.next//* ./app/**/*
[nodemon] watching: app.js
[nodemon] watching extensions: js,json
[nodemon] starting node app.js
[nodemon] forking
[nodemon] child pid: 20124
[nodemon] watching 1 file
Compiling ...

but when I made localhost:3000 - my port

it doesn't loads

I have updated nodemon and created thid nodemon .json

{
"verbose": true,
"ignore": ["node_modules", ".next","app/"],
"watch": ["app.js"],
"ext": "js json"
}

in package.json I have this

"dev": "nodemon -w app.js app.js"

Could you help me please...

Thanks
Carlos Vieira

@MustansirZia
Copy link
Owner

MustansirZia commented May 27, 2019

Hi @ShintaroNippon!
There's already a script bundled for nodemon in this boilerplate. Any specific reason why you're using your own?
For now, just try
"dev": "nodemon --ignore app/ app.js" and then npm run dev or yarn dev.
Also, I think to start the dev server you must be able to access the internet, can it? This is something Next.js does in order to check for updates. Could be one of the reasons why your server isn't starting and isn't attaching to port.

@ShintaroNippon
Copy link
Author

ShintaroNippon commented May 28, 2019

Thanks by the reply, I have define a port to production...
let me check that.
many thanks.
Carlos Vieira

@MustansirZia
Copy link
Owner

Alright then. You can define the port anyway without further configuring nodemon.

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