next build failing
Unanswered
Ruddy Duck posted this in #help-forum
Ruddy DuckOP
created my first next project today and I am getting an error when building. i have read through the notes on the issue and tried the items suggested. I have a pc running windows 11 x64 but I belive that node or the next framework believes I have the wrong processor architecture. warn - Attempted to load @next/swc-win32-ia32-gnu, but it was not installed
warn - Attempted to load @next/swc-win32-ia32-msvc, but it was not installed
warn - Found lockfile missing swc dependencies, patching...
warn - Lockfile was successfully patched, please run "npm install" to ensure @next/swc dependencies are downloaded
error - Failed to load SWC binary for win32/ia32, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
info - Creating an optimized production build .
is there a way to point to or configure the correct os and processor architecture
it appears to have installed "@next/swc-win32-ia32-msvc" but should have installed "@next/swc-win32-x64-msvc"
node -p 'process.arch' is reporting ia32
i resolved this by uninstalling and reinstalling node
warn - Attempted to load @next/swc-win32-ia32-msvc, but it was not installed
warn - Found lockfile missing swc dependencies, patching...
warn - Lockfile was successfully patched, please run "npm install" to ensure @next/swc dependencies are downloaded
error - Failed to load SWC binary for win32/ia32, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
info - Creating an optimized production build .
is there a way to point to or configure the correct os and processor architecture
it appears to have installed "@next/swc-win32-ia32-msvc" but should have installed "@next/swc-win32-x64-msvc"
node -p 'process.arch' is reporting ia32
i resolved this by uninstalling and reinstalling node