Open ebektasiadis opened 4 months ago
Your bun
is the M1 version (aarch64), but your node
is the x64 version. What happens when you run: bun -e 'console.log(process.arch)'
?
The solution would be to install the aarch64 version of node.
Your
bun
is the M1 version (aarch64), but yournode
is the x64 version. What happens when you run:bun -e 'console.log(process.arch)'
?The solution would be to install the aarch64 version of node.
Thank you @Electroid for your answer!
bun -e 'console.log(process.arch)'
gives me arm64
.
I saw some progress by installing Node with arm64, but still I get Error: Cannot find module 'ajv/dist/compile/codegen'
I installed it manually, and it works. But why it does not install itself as it seems to be a dependency?
pnpm installs it without having to define it inside package.json
What version of Bun is running?
1.0.29+a146856d1
What platform is your computer?
Darwin 23.2.0 x86_64 i386
What steps can reproduce the bug?
I am trying to create a project with
Rsbuild
. I install the dependencies from package.json withbun install
but when I dobun dev
I get an error.What is the expected behavior?
The expected behavior is the
webpack-dev-server
to begin.What do you see instead?
Additional information
I am running iTerm with
Rosetta 2
. I have installed brew asx86
. I have installed node through nvm. Version20.11.1
. When executingnode 'console.log(process.arch)
, I getx64
When trying to install dependencies with
pnpm
everything works as it should. After I install withpnpm
the dependencies, if I dobun dev
it works as expected.