cli
cli copied to clipboard
Wasm Error
Describe the bug
The following appear each time I run netlify-cli:
wasm streaming compile failed: TypeError: Failed to parse URL from /home/user/.local/share/npm/lib/node_modules/netlify-cli/node_modules/netlify-redirector/lib/redirects.wasm
falling back to ArrayBuffer instantiation
Steps to reproduce
Run netlify status.
Configuration
None.
Environment
System: OS: Linux 5.17 Arch Linux CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor Memory: 6.53 GB / 15.61 GB Container: Yes Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.1.0 - /bin/node Yarn: 1.22.18 - /bin/yarn npm: 8.5.5 - /bin/npm npmGlobalPackages: netlify-cli: 10.3.1
Same error on OSX 12.3.1 with Node 18.2.0 and neltify-cli 10.3.3.
I've been gettting the same error.
Same error here, is it recommended to downgrade node or netlify-cli?
@johnloy @arpit-agr I downgraded node to 16.0.0 and it now works!
@RossellaFer Downgrading might work but isn't a solution.
I was able to reproduce this issue by following the tutorial section of netlify: https://docs.netlify.com/get-started/ using node v18. the function section would not work.
after downgrading to v16 the local dev would then work properly.
Agree with @danisztls that fixing the issue with out the need to downgrade should be the right path forward
Related: https://github.com/netlify/cli/issues/4625#issuecomment-1137701649
This is already fixed on the main branch and the warning will disappear with the next version of the cli.
How was this fixed?
How I fixed it on my side:
- double-checked that I do not have several global
netlify-clipackages installed (NPM, yarn, PNPM, bun) - removed all of the installed ones + realized that I had some remaining in
/usr/local/binsince I'm running Ubuntu (those were taking prio over other package managers)- there I deleted both
ntlandnetlify(double checking that I have nothing installed thanks towhereis)
- there I deleted both
- used
nvmto install nodev20.10.0(got some issues with v20.9) npm install -g [email protected]to have the same working version as on my Macbook
This went from failing to launch a local Nuxt2 app, to having a successful (even tho a bit slower) start of my Nuxt3 app (is actually a Nuxt3 one, the CLI was trying to launch both Nuxt v2 and v3 before probably because I got the v9 of the CLI haha).
Maybe this could be helpful. 😸