Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxについて >> LinuxでのGulpエラーError:ENOSPCではどうすればいいですか?

LinuxでのGulpエラーError:ENOSPCではどうすればいいですか?

  
                

最近、FedoraおよびUbuntuオペレーティングシステムでgulpを使用すると問題が発生するとの報告がありましたGulpの報告Error:watch ENOSPC。何が起こっていますか? LinuxでのGulpエラーError:ENOSPCではどうすればいいですか?

一気次のエラーで、で始まる:

エラー:exports._errnoExceptionで

ENOSPC
を見る(util.js:746:11)

FSWatcher.start(fs.js:1172:11)

Object.fs.watch(fs.js:1198:11)

at Gaze._watchDir(/home /ajaxGu) /work/froad/anhui-standard/personal-h5/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:289:30)

at /home/ajaxGu/work/froad/anhui-standard/personal-h5/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:358:10

at iterate(/home/ajaxGu/work/froad/anhui-standard/personal-h5/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/helper.js:52: 5)

Object.forEachSeries(/home /ajaxGu /work /froad /anhui-standard /personal-h5 /node_modules /gulp /node_modules /vinyl-fs /node_modules /glob-watcher /node_modules /gaze /) Lib /helper.js:66:3)

Gaze._initWatched(/home/ajaxGu/work/froad/anhui-standard/personal-h5/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/lib/gaze.js:354:に10)

Gaze.add(/home /ajaxGu /work /froad /anhui-standard /personal-h5 /node_modules /gulp /node_modules /vinyl-fs /node_modules /glob-watcher /node_modules /gaze /) Lib /gaze.js:177:8)

at new Gaze(/home /ajaxGu /work /froad /anhui-standard /personal-h5 /node_modules /gulp /node_modules /vinyl-fs /node_modules /glob) -watcher /node_modules /gaze /lib /gaze.js:74:10)

解決策:

現在の問題は、gulpウォッチがたくさんのファイルの変更を監視する必要があるからです。 ubuntuシステムのファイルハンドルは実際には制限されているため、次のコマンドを使用できます。

echo fs.inotify.max_user_watches = 524288

Copyright © Windowsの知識 All Rights Reserved