Netlify CLI - Waiting for framework port

Hi team,

I’m running into a problem running the CLI and I am not sure how to trace the issue. I am using Netlify CLI to run Astro locally.

◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ Loaded function deepgram_token http://localhost:8888/.netlify/functions/deepgram_token.
◈ Loaded function forms http://localhost:8888/.netlify/functions/forms.
◈ Loaded function live-on-twitch http://localhost:8888/.netlify/functions/live-on-twitch.
◈ Loaded function madgab http://localhost:8888/.netlify/functions/madgab.
◈ Functions server is listening on 50667
◈ Starting Netlify Dev with Astro
yarn run v1.22.19
$ astro dev
  🚀  astro  v1.0.0-rc.2 started in 53ms
  
  ┃ Local    http://localhost:3000/
  ┃ Network  use --host to expose
  
  ▶ This is a  rc  prerelease build
    Feedback? https://astro.build/issues
  
⠸ Waiting for framework port 3000. This can be configured using the 'targetPort' property in the netlify.toml

Only it hangs, waiting for port 3000 forever.

I adjusted Astro’s port, and I have changed the targetPort to match. The result is the same.

◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ Loaded function deepgram_token http://localhost:8888/.netlify/functions/deepgram_token.
◈ Loaded function forms http://localhost:8888/.netlify/functions/forms.
◈ Loaded function live-on-twitch http://localhost:8888/.netlify/functions/live-on-twitch.
◈ Loaded function madgab http://localhost:8888/.netlify/functions/madgab.
◈ Functions server is listening on 50322
◈ Starting Netlify Dev with Astro
yarn run v1.22.19
$ astro dev --port 3001
  🚀  astro  v1.0.0-rc.2 started in 63ms
  
  ┃ Local    http://localhost:3001/
  ┃ Network  use --host to expose
  
  ▶ This is a  rc  prerelease build
    Feedback? https://astro.build/issues
  
⠏ Waiting for framework port 3001. This can be configured using the 'targetPort' property in the netlify.toml

It feels like a me problem. My colleagues have been using Netlify CLI for this project while I’ve been starting the dev server with yarn. This issue isn’t happening to them.

1 Like

It appears this might be a Netlify CLI issue related to Node 18. I raised this in the Astro discord. Link to the thread: Discord

Using Node 16 resolves this issue.

1 Like