我得到了一个繁重的构建过程,这似乎是错误来了:
警告:spawn E2BIG 使用 --force 继续
我在这里发现了错误:https ://github.com/feross/standard/issues/40和这里: http: //www.in-ulm.de/~mascheck/various/argmax/。我的错误是在执行了一组特定的任务之后出现的(我通过来回插入来检查这一点,以找出发生这种情况的边界线任务)。
以下是我运行时失败的错误堆栈(在 grunt-contrib-compass 任务中将 .scss 文件编译为 .css 文件)
grunt serve:all --appName=whitelabel --verbose --stack
Running "compass:iea" (compass) task
Verifying property compass.iea exists in config...OK
File: [no files]
Options: sassDir="lib/sass", cssDir="app/whitelabel/js/libs/iea/core/css", imagesDir="lib/images", javascriptsDir="lib/js", fontsDir="lib/sass/themes//fonts", importPath="lib/js/libs/vendor", relativeAssets
Warning: spawn E2BIG Use --force to continue.
Error: spawn E2BIG
at exports._errnoException (util.js:870:11)
at ChildProcess.spawn (internal/child_process.js:298:11)
at exports.spawn (child_process.js:362:9)
at Object.exports.execFile (child_process.js:151:15)
at Object.exports.exec (child_process.js:111:18)
at module.exports (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/bin-version/index.js:6:15)
at module.exports (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/bin-version-check/index.js:15:2)
at /Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/grunt-contrib-compass/tasks/compass.js:75:7
at configContext (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/grunt-contrib-compass/tasks/lib/compass.js:145:9)
at Object.<anonymous> (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/grunt-contrib-compass/tasks/compass.js:63:5)
Aborted due to warnings.
它发生在 grunt-contrib-compass 任务上,但是当我从 grunt 文件中删除此任务时,imagemin 任务上显示相同的错误,这意味着该错误纯粹基于系统(进程参数太多)
Running "imagemin:iea" (imagemin) task
Verifying property imagemin.iea exists in config...OK
Files: lib/images/carousel/arrow_left.png -> app/whitelabel/js/libs/iea/core/images/carousel/arrow_left.png
Files: lib/images/carousel/arrow_right.png -> app/whitelabel/js/libs/iea/core/images/carousel/arrow_right.png
Files: lib/images/carousel/carousel-1.jpg -> app/whitelabel/js/libs/iea/core/images/carousel/carousel-1.jpg
Files: lib/images/carousel/hero-idea.jpg.enscale.full.high.jpg -> app/whitelabel/js/libs/iea/core/images/carousel/hero-idea.jpg.enscale.full.high.jpg
Files: lib/images/carousel/hero-idea.jpg.enscale.mobL.high.jpg -> app/whitelabel/js/libs/iea/core/images/carousel/hero-idea.jpg.enscale.mobL.high.jpg
Files: lib/images/carousel/hero-idea.jpg.enscale.mobP.high.jpg -> app/whitelabel/js/libs/iea/core/images/carousel/hero-idea.jpg.enscale.mobP.high.jpg
Files: lib/images/carousel/hero-idea.jpg.enscale.tabL.high.jpg -> app/whitelabel/js/libs/iea/core/images/carousel/hero-idea.jpg.enscale.tabL.high.jpg
Files: lib/images/carousel/hero-idea.jpg.enscale.tabP.high.jpg -> app/whitelabel/js/libs/iea/core/images/carousel/hero-idea.jpg.enscale.tabP.high.jpg
Files: lib/images/carousel/pager_current.png -> app/whitelabel/js/libs/iea/core/images/carousel/pager_current.png
Files: lib/images/carousel/pager_default.png -> app/whitelabel/js/libs/iea/core/images/carousel/pager_default.png
Files: lib/images/common/broken.png -> app/whitelabel/js/libs/iea/core/images/common/broken.png
Files: lib/images/common/loading.gif -> app/whitelabel/js/libs/iea/core/images/common/loading.gif
Files: lib/images/content-result-grid/result.jpg -> app/whitelabel/js/libs/iea/core/images/content-result-grid/result.jpg
Files: lib/images/content-results-grid/result.jpg -> app/whitelabel/js/libs/iea/core/images/content-results-grid/result.jpg
Files: lib/images/country-selector/Argentina.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Argentina.png
Files: lib/images/country-selector/Australia.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Australia.png
Files: lib/images/country-selector/Brazil.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Brazil.png
Files: lib/images/country-selector/Canada.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Canada.png
Files: lib/images/country-selector/China.png -> app/whitelabel/js/libs/iea/core/images/country-selector/China.png
Files: lib/images/country-selector/Colombia.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Colombia.png
Files: lib/images/country-selector/France.png -> app/whitelabel/js/libs/iea/core/images/country-selector/France.png
Files: lib/images/country-selector/Germany.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Germany.png
Files: lib/images/country-selector/India.png -> app/whitelabel/js/libs/iea/core/images/country-selector/India.png
Files: lib/images/country-selector/Italy.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Italy.png
Files: lib/images/country-selector/Switzerland.png -> app/whitelabel/js/libs/iea/core/images/country-selector/Switzerland.png
Files: lib/images/country-selector/USA.png -> app/whitelabel/js/libs/iea/core/images/country-selector/USA.png
Files: lib/images/country-selector/japan.png -> app/whitelabel/js/libs/iea/core/images/country-selector/japan.png
Files: lib/images/form/bg-input-focus.png -> app/whitelabel/js/libs/iea/core/images/form/bg-input-focus.png
Files: lib/images/form/bg-input.png -> app/whitelabel/js/libs/iea/core/images/form/bg-input.png
Files: lib/images/form/calendar.png -> app/whitelabel/js/libs/iea/core/images/form/calendar.png
Files: lib/images/form/down-arrow.png -> app/whitelabel/js/libs/iea/core/images/form/down-arrow.png
Files: lib/images/form/form-bg.png -> app/whitelabel/js/libs/iea/core/images/form/form-bg.png
Files: lib/images/form/radio-selected.png -> app/whitelabel/js/libs/iea/core/images/form/radio-selected.png
Files: lib/images/form/radio.png -> app/whitelabel/js/libs/iea/core/images/form/radio.png
Files: lib/images/form/sprite.png -> app/whitelabel/js/libs/iea/core/images/form/sprite.png
Files: lib/images/hotspot/baseImage.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/baseImage.jpg
Files: lib/images/hotspot/baseImage.jpg.enscale.full.high.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/baseImage.jpg.enscale.full.high.jpg
Files: lib/images/hotspot/baseImage.jpg.enscale.mobL.high.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/baseImage.jpg.enscale.mobL.high.jpg
Files: lib/images/hotspot/baseImage.jpg.enscale.mobP.high.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/baseImage.jpg.enscale.mobP.high.jpg
Files: lib/images/hotspot/baseImage.jpg.enscale.tabL.high.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/baseImage.jpg.enscale.tabL.high.jpg
Files: lib/images/hotspot/baseImage.jpg.enscale.tabP.high.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/baseImage.jpg.enscale.tabP.high.jpg
Files: lib/images/hotspot/hotspot-1.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/hotspot-1.jpg
Files: lib/images/hotspot/hotspot-1.png -> app/whitelabel/js/libs/iea/core/images/hotspot/hotspot-1.png
Files: lib/images/hotspot/hotspot-2.jpg -> app/whitelabel/js/libs/iea/core/images/hotspot/hotspot-2.jpg
Files: lib/images/hotspot/hotspot-2.png -> app/whitelabel/js/libs/iea/core/images/hotspot/hotspot-2.png
Files: lib/images/hotspot/pointer.png -> app/whitelabel/js/libs/iea/core/images/hotspot/pointer.png
Files: lib/images/media-gallery/arrow-left.png -> app/whitelabel/js/libs/iea/core/images/media-gallery/arrow-left.png
Files: lib/images/media-gallery/arrow-right.png -> app/whitelabel/js/libs/iea/core/images/media-gallery/arrow-right.png
Files: lib/images/media-gallery/clip-icon.png -> app/whitelabel/js/libs/iea/core/images/media-gallery/clip-icon.png
Files: lib/images/media-gallery/media-gallery-1.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-1.jpg
Files: lib/images/media-gallery/media-gallery-10.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-10.jpg
Files: lib/images/media-gallery/media-gallery-11.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-11.jpg
Files: lib/images/media-gallery/media-gallery-12.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-12.jpg
Files: lib/images/media-gallery/media-gallery-2.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-2.jpg
Files: lib/images/media-gallery/media-gallery-3.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-3.jpg
Files: lib/images/media-gallery/media-gallery-4.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-4.jpg
Files: lib/images/media-gallery/media-gallery-5.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-5.jpg
Files: lib/images/media-gallery/media-gallery-6.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-6.jpg
Files: lib/images/media-gallery/media-gallery-7.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-7.jpg
Files: lib/images/media-gallery/media-gallery-8.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-8.jpg
Files: lib/images/media-gallery/media-gallery-9.jpg -> app/whitelabel/js/libs/iea/core/images/media-gallery/media-gallery-9.jpg
Files: lib/images/media-gallery/play-icon.png -> app/whitelabel/js/libs/iea/core/images/media-gallery/play-icon.png
Files: lib/images/media-gallery/slide-right-arrow.png -> app/whitelabel/js/libs/iea/core/images/media-gallery/slide-right-arrow.png
Files: lib/images/plain-text-image/plain-text-image.jpg -> app/whitelabel/js/libs/iea/core/images/plain-text-image/plain-text-image.jpg
Files: lib/images/related-content-list/related-content-list-1.jpg -> app/whitelabel/js/libs/iea/core/images/related-content-list/related-content-list-1.jpg
Files: lib/images/related-content-list/related-content-list-2.jpg -> app/whitelabel/js/libs/iea/core/images/related-content-list/related-content-list-2.jpg
Files: lib/images/related-content-list/related-content-list-3.jpg -> app/whitelabel/js/libs/iea/core/images/related-content-list/related-content-list-3.jpg
Files: lib/images/related-content-list/related-content-list-4.jpg -> app/whitelabel/js/libs/iea/core/images/related-content-list/related-content-list-4.jpg
Files: lib/images/rich-text-image-holder/richtext-image.jpg -> app/whitelabel/js/libs/iea/core/images/rich-text-image-holder/richtext-image.jpg
Files: lib/images/rich-text-image/rich-text-image.jpg -> app/whitelabel/js/libs/iea/core/images/rich-text-image/rich-text-image.jpg
Files: lib/images/search-result/truck.jpg -> app/whitelabel/js/libs/iea/core/images/search-result/truck.jpg
Files: lib/images/social-share-print/print.png -> app/whitelabel/js/libs/iea/core/images/social-share-print/print.png
Files: lib/images/social-share-print/share.png -> app/whitelabel/js/libs/iea/core/images/social-share-print/share.png
Files: lib/images/tabbed-content/accrodion-arrow-active.png -> app/whitelabel/js/libs/iea/core/images/tabbed-content/accrodion-arrow-active.png
Files: lib/images/tabbed-content/accrodion-arrow.png -> app/whitelabel/js/libs/iea/core/images/tabbed-content/accrodion-arrow.png
Files: lib/images/tabbed-content/tab-arrow.png -> app/whitelabel/js/libs/iea/core/images/tabbed-content/tab-arrow.png
Files: lib/images/video/youtube.jpg -> app/whitelabel/js/libs/iea/core/images/video/youtube.jpg
Files: lib/images/video/youtube.jpg.enscale.full.high.jpg -> app/whitelabel/js/libs/iea/core/images/video/youtube.jpg.enscale.full.high.jpg
Options: interlaced, optimizationLevel=3, progressive
Fatal error: spawn E2BIG
Error: spawn E2BIG
at exports._errnoException (util.js:870:11)
at ChildProcess.spawn (internal/child_process.js:298:11)
at exports.spawn (child_process.js:362:9)
at Through2._transform (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/imagemin-pngquant/index.js:59:12)
at Through2.Transform._read (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/readable-stream/lib/_stream_transform.js:159:10)
at Through2.Transform._write (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/readable-stream/lib/_stream_transform.js:147:83)
at doWrite (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/readable-stream/lib/_stream_writable.js:313:64)
at writeOrBuffer (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/readable-stream/lib/_stream_writable.js:302:5)
at Through2.Writable.write (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/readable-stream/lib/_stream_writable.js:241:11)
at write (/Users/vanan7/Documents/IEA/d2-front-end-training-repo/unilever-platform/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
在另一个项目中,我问了一个朋友,构建过程非常复杂(传递了许多参数),但没有抛出这个错误。
这仅在 mac 机器上发生并且在 windows 上运行良好。
在谁能提供帮助之前有人遇到过这个错误吗?还是你可以的任何其他人?谢谢你。