Wednesday, January 14, 2026

npm run build does not work

If you are experiencing building js files for production follow these steps
  •  Make sure you have the correct node version
          execute node -v in PowerShell / Command Prompt / VS Code terminal
  • Delete node_modules 
  • Delete package-lock.json
  • Install correct node version
  • Restart the Terminal (This step is required on Windows so PATH updates correctly)
  • execute npm install in PowerShell / Command Prompt / VS Code terminal
  • execute npm run dev in PowerShell / Command Prompt / VS Code terminal

Cheers
Samitha