Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I keep getting an error in Vite version 3.2.4 which says `[vite:esbuild] The service is no longer running: write EPIPE`

After creating a vite app. I run the command npm run dev and I get this error

[vite:esbuild] The service is no longer running: write EPIPE

enter image description here

Please, How do I solve this error.

I have tried the following solutions

Vite build fails with esbuild error

error while transforming /app/client/vite.config.ts with esbuild in Docker image

like image 739
Ifeanyi Chima Avatar asked Oct 26 '25 08:10

Ifeanyi Chima


2 Answers

Removing packages and re-installing (if you are not using npm ci) helped me.

  1. Deleting packages
rm -rf ./node_modules ./package-lock.json
  1. Re-installing packages
npm i 
  1. Running the server
npm run dev
like image 81
Selim Avatar answered Oct 28 '25 22:10

Selim


I found a solution to my problem. If you have an anti-virus, you need to uninstall it.

I myself, I had to uninstall SMADAV anti-virus.

like image 41
Ifeanyi Chima Avatar answered Oct 28 '25 22:10

Ifeanyi Chima