Closed jjtfsalgado closed 1 year ago
npm update worked for me with similar scenarios. Don't knonw if already answered though.
for Android arm64 use this command
pnpm add --save-optional @swc/core-android-arm64
or if you use npm
npm install --save-optional @swc/core-android-arm64
keep in mind that this package hasn't been updated in a while, at the time of writing this comment, latest swc core package version is 1.4.7
while swc/core-android-arm64 package version is 1.3.11
but atleast it works
Hey there
If you have this problem, you probably ran into is https://github.com/npm/cli/issues/4828. The bug happens when npm generates the lockfile with an existing node_modules that contains platform-specific dependencies.
Two solutions:
rm -rf node_modules package-lock.json && npm i
Original post
Running
vite
we occasionally come across with this error. The way we found to overcome this was to remove node_modules and reinstall it. Do you guys have any ideas what is causing this?