cloudflare / workers-sdk

ā›…ļø Home to Wrangler, the CLI for Cloudflare WorkersĀ®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.62k stars 688 forks source link

šŸ› BUG: fsevents.code, escode Not Opened causing failure to start npx wrangler dev #6919

Open nitbu opened 5 days ago

nitbu commented 5 days ago

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.80.1

What version of Node are you using?

22.9.0

What operating system and version are you using?

Mac Sequoia 15.0

Describe the Bug

Fresh upgrade to MacOS Sequoia 15 Fresh install brew install node Fresh install npm install -g @cloudflare/wrangler Fresh upgrade npm update -g @cloudflare/wrangler

Run: npx wrangler dev --persist-to ./localData --config ./main.toml

System errors:

  1. (x2) ā€œfsevents.nodeā€ Not Opened Apple could not verify ā€œfsevents.nodeā€ is free of malware that may harm your Mac or compromise your privacy. [Done] [Move to Trash]
  2. (x2) ā€œesbuildā€ Not Opened Apple could not verify ā€œesbuildā€ is free of malware that may harm your Mac or compromise your privacy. [Done] [Move to Trash]

Wrangler partially loads by clicking Done through two fsevents.node errors, and then fails without error when clicking [Done] to esbulid

Doesn't look like a wrangler specific problem but is there a workaround or anything that can be done to get this running again?

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

andyjessop commented 5 days ago

Thanks very much for reporting this. I don't believe there's anything to do on our end, but one thing I might suggest is to install node with nvm, which may help avoid permissions issues.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install node
npm install -g @cloudflare/wrangler

I'll close this for now, as it's not clear that it's something that we can fix.

threepointone commented 5 days ago

To clarify the package name, it should be wrangler, not @cloudflare/wrangler (which is deprecated)

threepointone commented 5 days ago

I think this might be related to sequoia. I'll be installing sequoia this week and I'll test it myself.