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

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