Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify node version on package.json and unify "npm run dev" between server and client #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

joseboretto
Copy link

@joseboretto joseboretto commented Nov 29, 2022

Hi, I have Macbook m1 / amd and I was struggling with this error

You installed esbuild on 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-linux-64" package is present but this platform
needs the "esbuild-darwin-arm64" package instead. People often get into this
situation by installing esbuild on Windows or macOS and copying "node_modules"
into a Docker image that runs Linux, or by copying "node_modules" between
Windows and WSL environments.

The fix was solved by updating from Node v14 to v16.
If we add the engine to package.json we could avoid this problem beforehand.

https://reactgo.com/specify-node-version/

Let me know if it makes sense. Have a great day!

@joseboretto joseboretto changed the title Specify node version on package.json Specify node version on package.json and unify "npm run dev" between server and client Nov 29, 2022
@joseboretto joseboretto marked this pull request as ready for review November 29, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant