Can't run dev server in next.js using npm
Unanswered
Indian oil sardine posted this in #help-forum
Indian oil sardineOP
I have installed the latest version of next.js which is 14.1.0 and whenever I'm trying to use this command "npm run dev", I'm getting error that says
This is the list of things I have tried so far
1. I have installed the latest version of Microsoft Visual C++ Redistributable
2. I have used this commands
3. I have deleted 'package.locl.json' and 'node modules' and then run the command 'npm install'
4. I have used powershell with administrator right to do 'npm install'
5. I have changed my files location from HDD to C disk
6. I have created '.babelrc' file with this content
7. I have added this line in next.config.msj file
8. I have reinstalled next.js app and restarted computer multiple times
I don't know what more can I do, I have already tried everything, pls help me with this issue
Thanks
âš Disabling SWC Minifer will not be an option in the next major version. Please report any issues you may be experiencing to https://github.com/vercel/next.js/issues
âš Attempted to load @next/swc-win32-ia32-msvc, but an error occurred: A dynamic link library (DLL) initialization routine failed.
\\?\C:\xampp\htdocs\next-js-app\node_modules\@next\swc-win32-ia32-msvc\next-swc.win32-ia32-msvc.node
⨯ Failed to load SWC binary for win32/ia32, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
This is the list of things I have tried so far
1. I have installed the latest version of Microsoft Visual C++ Redistributable
2. I have used this commands
npm i -D @swc/cli @swc/core
npx swc ./file.js
3. I have deleted 'package.locl.json' and 'node modules' and then run the command 'npm install'
4. I have used powershell with administrator right to do 'npm install'
5. I have changed my files location from HDD to C disk
6. I have created '.babelrc' file with this content
{
"presets": ["next/babel"]
}
7. I have added this line in next.config.msj file
/** @type {import('next').NextConfig} */
const nextConfig = {
swcMinify: false,
};
export default nextConfig;
8. I have reinstalled next.js app and restarted computer multiple times
I don't know what more can I do, I have already tried everything, pls help me with this issue
Thanks
5 Replies
Indian oil sardineOP
UPDATE
I have installed windows 10 and it worked perfectly, but still I need to solve the problem on my windows 11, because that's my working environment
I have installed windows 10 and it worked perfectly, but still I need to solve the problem on my windows 11, because that's my working environment
Indian oil sardineOP
"ia32" on windows 11 and "x64" on windows 10
Indian oil sardineOP
Should I reinstall my windows 11?
@Indian oil sardine Should I reinstall my windows 11?
yes, install node 64bit