question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load SWC binary for win32/x64

See original GitHub issue

Verify canary release

  • I verified that the issue exists in Next.js canary release

Provide environment information

Operating System: Platform: win32 Arch: x64 Version: Windows 10 Home Binaries: Node: 16.14.2 npm: 8.5.0 Yarn: 1.22.18 pnpm: N/A Relevant packages: next: 12.1.0 react: 17.0.2 react-dom: 17.0.2

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

After “Automatic Setup” installation, when i try to run npm run dev i received this message:

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Attempted to load @next/swc-win32-x64-gnu, but it was not installed
info  - Attempted to load @next/swc-win32-x64-msvc, but an error occurred: The specified module could not be found.     
\\?\C:\Users\Acer\Desktop\GitHub\personal_website\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node    
error - Failed to load SWC binary for win32/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
The terminal process "C:\Windows\System32\cmd.exe /d /c npm run dev" terminated with exit code: 1.

Expected Behavior

Just working

To Reproduce

npx create-next-app@latest
# or
yarn create next-app
npm run dev

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
github-actions[bot]commented, Apr 28, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Next failed to load SWC binary - Stack Overflow
When trying to run the command using nextjs npm run dev shows error - failed to load SWC binary see more info here: ......
Read more >
failed-loading-swc - Next.js
SWC requires a binary be downloaded that is compatible specific to your system. In some cases this binary may fail to load either...
Read more >
How to fix failed to load SWC binary NextJS - Tutorial + Tips
How to fix failed to load SWC binary NextJS ; Remove node_modules directory and package-lock.json; Run npm i to install the dependecncies ;...
Read more >
@swc/core-win32-x64-msvc - npm
Start using @swc/core-win32-x64-msvc in your project by running `npm i ... This is the x86_64-pc-windows-msvc binary for @swc/core ...
Read more >
SWC failed loading - Ethereum Stack Exchange
i tried "npm run dev" in my command but it kept showing this error: Failed to load SWC binary for win32/x64 it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found