Npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})

Hi, I ran into a deployment issues with Cloudflare pages, this time I’m still running an Astro based static sites. It’s working properly on my local development machine, but for reasons, couldn’t have them deployed on the Cloudflare Pages, so I was wondering if anyone could help me with my issues.

|10:20:51.785|npm ERR! notsup Unsupported platform for [email protected]: wanted {os:linux,arch:arm64} (current: {os:linux,arch:x64})|
|---|---|
|10:20:51.785|npm ERR! notsup Valid OS:    linux|
|10:20:51.786|npm ERR! notsup Valid Arch:  arm64|
|10:20:51.786|npm ERR! notsup Actual OS:   linux|
|10:20:51.786|npm ERR! notsup Actual Arch: x64|

Any feedback would be most appreciated.

Thanks,
-G-

If you set an environment variable NODE_VERSION to 17.9.1 (or whatever version of Node you are using, but nothing newer than 17.9.1 yet), does it work?

1 Like

Awesome, it did work. Thanks @i40west :blush:

One reason more for @Walshy to not support the :latest tag at Cloudflare Pages. But sticking with fixed versions … :+1:

That’s the newest Node version that will run on the ancient Pages build image.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.