Home  >  Q&A  >  body text

Grunt编译angular.js内存不足

从github上面clone下来angular.js的项目,找不到可用的js文件,于是按照build说明用npm安装了一个Grunt(没用过,其实不太懂是干什么的),然后按照Grunt入门教程输入:

npm install
grunt package --force

然后就报内存不足。
我是512M的内存,1G的swapfile,系统是CentOS 6.3 64bit 请问如何解决这个问题?

PHPzPHPz2687 days ago550

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