MacOs m1 Error whilt runnig PWA

I am getting some setting error while running PWA

failed to load config from /private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App Builder/preview/appbuilder-pwa/vite.config.js
error when starting preview server:
Error:
You installed esbuild for another platform than the one you’re currently using.
This won’t work because esbuild is written with native code and needs to
install a platform-specific binary executable.
Specifically the “@esbuild/darwin-x64” package is present but this platform
needs the “@esbuild/darwin-arm64” package instead. People often get into this
situation by installing esbuild with npm running inside of Rosetta 2 and then
trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
2 is Apple’s on-the-fly x86_64-to-arm64 translation service).
If you are installing with npm, you can try ensuring that both npm and node are
not running under Rosetta 2 and then reinstalling esbuild. This likely involves
changing how you installed npm and/or node. For example, installing node with
the universal installer here should work: Node.js — Download Node.js®. Or
you could consider using yarn instead of npm which has built-in support for
installing a package on multiple platforms simultaneously.
If you are installing with yarn, you can try listing both “arm64” and “x64”
in your “.yarnrc.yml” file using the “supportedArchitectures” feature:
Settings (.yarnrc.yml) | Yarn
Keep in mind that this means multiple copies of esbuild will be present.
Another alternative is to use the “esbuild-wasm” package instead, which works
the same way on all platforms. But it comes with a heavy performance cost and
can sometimes be 10x slower than the “esbuild” package, so you may also not
want to do that.
at generateBinPath (/private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App Builder/preview/appbuilder-pwa/node_modules/vite/node_modules/esbuild/lib/main.js:1888:17)
at esbuildCommandAndArgs (/private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App Builder/preview/appbuilder-pwa/node_modules/vite/node_modules/esbuild/lib/main.js:1969:33)
at ensureServiceIsRunning (/private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App Builder/preview/appbuilder-pwa/node_modules/vite/node_modules/esbuild/lib/main.js:2133:25)
at build (/private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App Builder/preview/appbuilder-pwa/node_modules/vite/node_modules/esbuild/lib/main.js:2025:26)
at bundleConfigFile (file:///private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App%20Builder/preview/appbuilder-pwa/node_modules/vite/dist/node/chunks/dep-52909643.js:66204:26)
at loadConfigFromFile (file:///private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App%20Builder/preview/appbuilder-pwa/node_modules/vite/dist/node/chunks/dep-52909643.js:66180:31)
at resolveConfig (file:///private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App%20Builder/preview/appbuilder-pwa/node_modules/vite/dist/node/chunks/dep-52909643.js:65777:34)
at preview (file:///private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App%20Builder/preview/appbuilder-pwa/node_modules/vite/dist/node/chunks/dep-52909643.js:65642:26)
at CAC. (file:///private/var/folders/06/nbbrf6vx5cqc6vv8qj1qs_xr0000gn/T/App%20Builder/preview/appbuilder-pwa/node_modules/vite/dist/node/cli.js:896:30)

Someone please guide.

We tried with filezilla and the file got uploaded successfully.