netlify dev crashes after init and says it could not acquire the port. I’ve tried changing the port and running netlify dev --port=PORT several times. same issue. I’m on the latest version of the netlify-cli.
can’t think of anything else - netlify.toml and package.json seem standard.
- netlify site name:
otto-writes.netlify.app
- Build problems? Link or paste the FULL build log & build settings screenshot
netlify dev
(node:2531) [DEP0040] DeprecationWarning: Thepunycode
module is deprecated. Please use a userland alternative instead.
(Usenode --trace-deprecation ...
to show where the warning was created)
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Using simple static server because ‘[dev.framework]’ was set to ‘#static’
◈ Running static server from “node-server/public”
◈ Setting up local development server
Cleaned up .netlify/functions-internal.
◈ Static server listening to 3999
◈ Loaded function qna
Request from ::1: GET /.netlify/functions/qna/0
Parsed index: 0
Response with status 200 in 32 ms.
winston:create-logger: Define prototype method for “error”
winston:create-logger: Define prototype method for “warn”
winston:create-logger: Define prototype method for “info”
winston:create-logger: Define prototype method for “http”
winston:create-logger: Define prototype method for “verbose”
winston:create-logger: Define prototype method for “debug”
winston:create-logger: Define prototype method for “silly”
winston:create-logger: Define prototype method for “error”
winston:create-logger: Define prototype method for “warn”
winston:create-logger: Define prototype method for “info”
winston:create-logger: Define prototype method for “http”
winston:create-logger: Define prototype method for “verbose”
winston:create-logger: Define prototype method for “debug”
winston:create-logger: Define prototype method for “silly”
(node:2595) [DEP0040] DeprecationWarning: Thepunycode
module is deprecated. Please use a userland alternative instead.
(Usenode --trace-deprecation ...
to show where the warning was created)
2024-04-05T22:05:26.300Z dev:preAction start
2024-04-05T22:05:26.301Z dev:init start
2024-04-05T22:05:27.795Z netlify:init end
2024-04-05T22:05:27.795Z dev:preAction end
◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Ignored general context env var: SITE_ID (defined in process)
◈ Ignored general context env var: SITE_NAME (defined in process)
◈ Ignored general context env var: DEPLOY_ID (defined in process)
◈ Using simple static server because ‘[dev.framework]’ was set to ‘#static’
◈ Running static server from “node-server/public”
◈ Could not acquire required ‘port’: ‘3002’
◈ Command failed with exit code 1: npm run start. Shutting down Netlify Dev server
netlify.toml:
[build]
functions = “netlify/functions”
command = “npm run build”
publish = “public/”
[dev]
functions = “netlify/functions”
command = “npm run start”
publish = “public”
framework = “#static”
publicPath = “public”
port = 3002