Hey Everyone,
Been trying long on trying to deploy a frontend canister locally to test out my backend…
But there is this issues regarding my node_modules which is preventing it from deploying (Screenshots Attached) tried reinstalling node_modules multiple times but the error still persists
Node version = 22.12.0
DFX_VERSION = ‘0.24.3’
DFX_NETWORK = ‘local’
Thanks in Advance!
Did you also remove package.lock when you removed node_modules like the second line is suggesting?
Yes I have always removed that too along with node_modules
@Severin any more ideas here?
I noticed that the package name included -x64
, indicating it was meant for Intel-based Macs or systems. Since I was using the wrong Node.js distribution on my M4 Mac, I realized I needed the ARM-based version. To fix this, I reinstalled Node.js, cleared the cache and node modules, and then reran npm install
. After that, everything worked successfully.
2 Likes