[Vuejs]-When use vue-cli-service build i got an node error 'Error: write EPIPE'

0👍

This could be caused by not running npm install before the npm run build in jenkins.

npm install -g @vue/cli
# OR
yarn global add @vue/cli

Also building with CI/CD tools like Jenkins sometimes requires npm install to be replaced with npm ci to make sure doing a clean install of your dependencies. More here npm ci

npm ci
npm run build
...

0👍

I get this error too , but only when run build in server environment.
after search about this problem, i found that it because memory limitation ,but unfortunately i couldn’t find the right solution .
Maybe this lead will able to help you

Leave a comment