search

Home  >  Q&A  >  body text

Grunt compiles angular.js out of memory

I cloned the angular.js project from github and could not find the available js file, so I installed a Grunt with npm according to the build instructions (I have never used it before, and I don’t really know what it does), and then followed the steps to get started with Grunt. Tutorial input:

npm install
grunt package --force

Then it reports insufficient memory.
I have 512M of memory, 1G of swapfile, and the system is CentOS 6.3 64bit. How can I solve this problem?

PHPzPHPz2779 days ago630

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-15 16:53:36

    Isn’t the second angular.js you created in the picture above a usable js file?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-15 16:53:36

    You can use bower tool to download the compiled version

    reply
    0
  • Cancelreply