当我运行命令gulp时,我收到以下错误。 我正在使用Elementary Loki和Node 4.2.6。所有其他命令都很好:
anshul@anshul-HP-Notebook:~/Downloads/fivevolts$ gulp
[16:05:40] Using gulpfile ~/Downloads/fivevolts/gulpfile.js
[16:05:40] Starting 'usemin'...
[16:05:40] Starting 'copy-bower_fonts'...
[16:05:40] Starting 'custom-images'...
[16:05:40] Starting 'custom-js'...
[16:05:40] Starting 'custom-less'...
[16:05:40] Starting 'custom-templates'...
[16:05:40] Starting 'webserver'...
[16:05:41] Finished 'webserver' after 139 ms
[16:05:41] Starting 'livereload'...
[16:05:41] Finished 'livereload' after 12 ms
[16:05:41] Starting 'watch'...
[16:05:41] 'watch' errored after 10 ms
[16:05:41] Error: watch /home/anshul/Downloads/fivevolts/src/img/ ENOSPC
at exports._errnoException (util.js:870:11)
at FSWatcher.start (fs.js:1234:19)
at Object.fs.watch (fs.js:1262:11)
at Gaze._watchDir (/home/anshul/Downloads/fivevolts/node_modules/gaze/lib/gaze.js:289:30)
at /home/anshul/Downloads/fivevolts/node_modules/gaze/lib/gaze.js:358:10
at iterate (/home/anshul/Downloads/fivevolts/node_modules/gaze/lib/helper.js:52:5)
at Object.forEachSeries (/home/anshul/Downloads/fivevolts/node_modules/gaze/lib/helper.js:66:3)
at Gaze._initWatched (/home/anshul/Downloads/fivevolts/node_modules/gaze/lib/gaze.js:354:10)
at Gaze.add (/home/anshul/Downloads/fivevolts/node_modules/gaze/lib/gaze.js:177:8)
at new Gaze (/home/anshul/Downloads/fivevolts/node_modules/gaze/lib/gaze.js:74:10)
[16:05:41] Server started http://localhost:8888
[16:05:41] LiveReload started on port 35729
[16:05:41] Finished 'custom-less' after 201 ms
events.js:141
throw er; // Unhandled 'error' event
^
Error: watch /home/anshul/Downloads/fivevolts/dist ENOSPC
at exports._errnoException (util.js:870:11)
at FSWatcher.start (fs.js:1234:19)
at Object.fs.watch (fs.js:1262:11)
at createFsWatchInstance (/home/anshul/Downloads/fivevolts/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/anshul/Downloads/fivevolts/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/anshul/Downloads/fivevolts/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleDir (/home/anshul/Downloads/fivevolts/node_modules/chokidar/lib/nodefs-handler.js:407:19)
at FSWatcher.<anonymous> (/home/anshul/Downloads/fivevolts/node_modules/chokidar/lib/nodefs-handler.js:455:19)
at FSWatcher.<anonymous> (/home/anshul/Downloads/fivevolts/node_modules/chokidar/lib/nodefs-handler.js:460:16)
at FSReqWrap.oncomplete (fs.js:82:15)
我认为错误不在代码中,因为我试图在之前运行良好的其他项目代码上运行gulp,现在得到相同的错误。
答案 0 :(得分:0)
当多个应用程序试图访问同一个端口时,会发生这种情况,它始终是FIFO。检查您的gulp工具包端口,然后重试。