I’m pretty new to Nelify and have been encountered a problem lately when trying to run this command netlify dev to run the server locally I get the following error:
"npm run build" exited with code 0. Shutting down Netlify Dev server
My Netlify site name: https://nervous-minsky-4dcffc.netlify.app/
My netlify.toml file has the following configs:
[build]
command = “npm install --prefix=functions && npm run build && npm run export”
publish = “out”
functions = “functions”
There are no error while deploying on netlify just when I try to run it locally. Could please someone offer me some hints on what might be wrong?
just a quick follow up on this in case anyone else encounters this issue.
I’ve changed my netlify.toml file to have this config and my dev server started properly
[dev]
framework = “next”
command = “npm run dev”
Thanks fo much for sharing your solution with us, we always appreciate it. Like you said, it could definitely help if any other Forums members find themselves in a similar situation.