其实还很远 2017-12-11 09:30 采纳率: 0%
浏览 2110
已结题

gulp . watch出现的问题

<--- JS stacktrace --->
Cannot get stack trace in GC.
FATAL ERROR: MarkCompactCollector: semi-space copy, fallback in old gen Allocation failed - JavaScript heap out of memory
sh: line 1: 35606 Abort trap: 6 NODE_ENV=localWillclass supervisor -i ./public,./build ./bin/twww

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "localWillclass"
npm ERR! node v6.1.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! willclass@4.2.20170901 localWillclass: NODE_ENV=localWillclass supervisor -i ./public,./build ./bin/twww && gulp deploy --silent
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the willclass@4.2.20170901 localWillclass script 'NODE_ENV=localWillclass supervisor -i ./public,./build ./bin/twww && gulp deploy --silent'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the willclass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=localWillclass supervisor -i ./public,./build ./bin/twww && gulp deploy --silent
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs willclass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls willclass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/shuai/huitong/willclass/npm-debug.log

  • 写回答

1条回答 默认 最新

  • 其实还很远 2017-12-12 02:05
    关注

    这个问题是node内存泄漏造成的。因为node是单线程的,所有的访问走的一个线程,如果执行完一个,占用内存增加,但是没有释放的话,就造成内存泄漏,内存泄漏其实就是存储泄漏,而造成的原因就是内存分配超过了v8内存的限制数量,而且进程所占用的内存,并没有慢慢释放回来,

    评论

报告相同问题?

悬赏问题

  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题