eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.23k stars 867 forks source link

yarn install fails because of out of memory exception #912

Open Rainson12 opened 4 years ago

Rainson12 commented 4 years ago

When the yarn install step is running the command is failing because it runs out of memory. I couldnt find a way to fix it as i dont know how to tell the step to use more memory?

holgergp commented 4 years ago

You can increase the available memory by providing the NODE_OPTIONS env variable. Like described here: https://medium.com/tomincode/increasing-nodes-memory-337dfb1a60dd