我正在尝试运行 Mean.io 项目。我做了一些简单的 HTML 更改和一些简单的控制器更改,只是为了了解项目是如何设置的。在学习如何设置项目时已经足够早了,我没有将任何东西检查到源代码控制中,在搞砸了一段时间之后,我会删除项目并重新开始(我已经这样做了几次) .
每次初始化项目时,我都会按照 Mean.io 文档进行操作:
mean init projectName
cd projectName && npm install
gulp
这工作了多次。然后突然之间,它停止工作,gulp 不再启动一切。据我所知,没有任何版本发生变化。由于运行 gulp,我不断得到这个输出:
$ gulp (node:9800) fs: 不支持重新评估原生模块源。如果您使用的是 graceful-fs 模块,请将其更新到更新的版本。调用 gulp - 开发 [18:11:02] 使用 gulpfile C:\workspace\learning\mean\tour\toursey\gulpfile.js [18:11:02] 开始“清洁”... [18:11:02] 5.78 毫秒后完成“清理”[18:11:02] 开始“默认”... [18:11:02] 开始“webpack:build-dev”... [18:11:02] 开始“清理” ... [18:11:02] 开始“少”... [18:11:02] 开始“sass”... [18:11:02] 开始“csslint”... [18:11: 02] 'csslint' 在 55 毫秒后出错 [18:11:02] TypeError: plugins.csslint.reporter 不是 Gulp 的函数。(C:\workspace\learning\mean\tour\toursey\gulp\development.js:52:27)
在 module.exports (C:\workspace\learning\mean\tour\toursey\node_modules\orchestrator\lib\runTask.js:34:7) 在 Gulp.Orchestrator._runTask (C:\workspace\learning\mean\tour\ toursey\node_modules\orchestrator\index.js:273:3) 在 Gulp.Orchestrator._runStep (C:\workspace\learning\mean\tour\toursey\node_modules\orchestrator\index.js:214:10) 在 Gulp.Orchestrator .start (C:\workspace\learning\mean\tour\toursey\node_modules\orchestrator\index.js:134:8) 在 Gulp。(C:\workspace\learning\mean\tour\toursey\gulpfile.js:16:8) 在 module.exports (C:\workspace\learning\mean\tour\toursey\node_modules\orchestrator\lib\runTask.js: 34:7) 在 Gulp.Orchestrator._runTask (C:\workspace\learning\mean\tour\toursey\node_modules\orchestrator\index.js:273:3) 在 Gulp.Orchestrator._runStep (C:[18:11:02] 255 毫秒后完成“干净” [18:11:02] 722 毫秒后完成“更少” [18:11:02] 542 毫秒后完成“sass” [18:11:08] [ webpack:build-dev] 哈希:d3d41231974f858a22db 版本:webpack 1.13.2 时间:6019ms 资产大小块块名称 app.js 2.87 MB 0 [emitted] main app.js.map 3.38 MB 0 [emitted] main chunk {0} app .js, app.js.map (main) 2.79 MB [rendered] [0] ./app.js 1.64 kB {0} [built] [1] ./bower_components/angular/angular-csp.css 937 bytes {0 } [内置] [2] ./~/css-loader!./bower_components/angular/angular-csp.css 569 字节 {0} [内置] [3] ./~/css-loader/lib/css-base .js 1.51 kB {0} [内置] [4] ./~/style-loader/addStyles.js 7.15 kB {0} [内置] [5] ./~/angular-ui-select/select.min.css 870 字节 {0} [内置] [6] 。/~/css-loader!./~/angular-ui-select/select.min.css 4.34 kB {0} [内置] [7] ./bower_components/bootstrap/dist/css/bootstrap.min.css 967 字节{0} [内置] [8] ./~/css-loader!./bower_components/bootstrap/dist/css/bootstrap.min.css 122 kB {0} [内置] [9] ./bower_components/bootstrap/dist /fonts/glyphicons-halflings-regular.eot 26.9 kB {0} [内置] [10] ./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 24.1 kB {0} [内置] [11]。 /bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff 31.3 kB {0} [内置] [12] ./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf 60.6 kB {0} [内置] [13] ./bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg 145 kB {0} [内置] [14] ./~/jquery/dist/jquery.js 264 kB {0} [建] [15] 。/bower_components/angular/index.js 50 字节 {0} [内置] [16] ./bower_components/angular/angular.js 1.22 MB {0} [内置] [17] ./~/angular-ui-select/select .js 76.4 kB {0} [内置]
[18] ./bower_components/angular-mocks/angular-mocks.js 112 kB {0} [内置] [19] ./bower_components/angular-cookies/index.js 62 字节 {0} [内置] [20] . /bower_components/angular-cookies/angular-cookies.js 10.1 kB {0} [内置] [21] ./bower_components/angular-resource/index.js 64 字节 {0} [内置] [22] ./bower_components/angular -resource/angular-resource.js 36.1 kB {0} [内置] [23] ./bower_components/angular-sanitize/index.js 64 字节 {0} [内置] [24] ./bower_components/angular-sanitize/angular -sanitize.js 27.6 kB {0} [内置] [25] ./~/angular-ui-router/release/angular-ui-router.js 172 kB {0} [内置] [26] ./~/angular -jwt/index.js 67 字节 {0} [内置]
[27] ./~/angular-jwt/dist/angular-jwt.js 12.5 kB {0} [内置] [28] ./bower_components/angular-bootstrap/ui-bootstrap-tpls.js 274 kB {0} [内置] [29] ./packages /public/(?!tests|assets|views)(.).js$ 436 字节 {0} [built] [30] ./packages/custom/toursey/public/controllers/header.js 1.3 kB {0} [optional] [built] [31] ./packages/custom/ toursey/public/controllers/index.js 2.11 kB {0} [可选] [内置] [32] ./packages/custom/toursey/public/controllers/starter.js 363 字节 {0} [可选] [内置] [ 33] ./packages/custom/toursey/public/index.js 129 字节 {0} [可选] [内置] [34] ./packages/custom/toursey/public/assets/css/common.css 970 字节 {0 } [内置] [35] ./~/css-loader!./packages/custom/toursey/public/assets/css/common.css 1.12 kB {0} [内置] [36] ./packages/custom/toursey /public/assets/css/loginForms.css 982 字节 {0} [内置] [37] ./~/css-loader!./packages/custom/toursey/public/assets/css/loginForms.css 12.8 kB {0 } [内置] [38] ./packages/custom/toursey/public/assets/css/starter.css 973 字节 {0} [内置] [39] ./~/css-loader!./packages/custom/toursey/public/assets/css/starter.css 5.59 kB {0} [内置] [40] ./ packages/custom/toursey/public/routes/system.js 522 字节 {0} [可选] [内置] [41] ./packages/custom/toursey/public/routes/users.js 1.22 kB {0} [可选] [内置] [42] ./node_modules /meanio-(.)/public/(?!tests|assets|views)(.*).js$ 1.39 kB {0} [内置] [43] ./~/meanio-admin/public/controllers/admin.js 1.26 kB {0 } [可选] [内置] [44] ./~/meanio-admin/public/controllers/example.js 565 字节 {0} [可选] [内置] [45] ./~/meanio-admin/public/controllers /modules.js 431 字节 {0} [可选] [内置] [46] ./~/meanio-admin/public/controllers/settings.js 3.16 kB {0} [可选] [内置] [47] ./~ /meanio-admin/public/controllers/themes.js 1.68 kB {0} [可选] [内置] [48] ./~/meanio-admin/public/controllers/users.js 3.24 kB {0} [可选] [内置] [49] ./~/meanio-admin/public/directives/editable.js 3.42 kB {0} [可选] [内置] [50] ./~/meanio-admin/public/index.js 124 字节 { 0} [可选] [内置] [51] ./~/meanio-admin/public/assets/css/admin.css 891 字节 {0} [内置]
[52] ./~/css-loader!./~/meanio-admin/public/assets/css/admin.css 3.77 kB {0} [内置] [53] ./~/zeroclipboard/dist/ZeroClipboard.js 85.6 kB {0} [内置] [54] ./~/ng-clip/dest/ng-clip.min.js 1.18 kB {0} [内置] [55] ./~/meanio-admin/public/routes /admin.js 1.25 kB {0} [可选] [内置] [56] ./~/meanio-admin/public/services/module-settings.js 1.03 kB {0} [可选] [内置] [57] . /~/meanio-admin/public/services/modules.js 353 字节 {0} [可选] [内置] [58] ./~/meanio-admin/public/services/settings.js 1.04 kB {0} [可选] [内置] [59] ./~/meanio-admin/public/services/users.js 326 字节 {0} [可选] [内置] [60] ./~/meanio-circles/public/controllers/circles. js 763 字节 {0} [可选] [内置] [61] ./~/meanio-circles/public/index.js 53 字节 {0} [可选] [内置] [62] ./~/meanio-circles/public/assets/css/circles.css 897 字节 {0} [内置] [63] ./~/css-loader!./~/meanio-circles/public/assets/css/circles .css 570 字节 {0} [内置] [64] ./~/meanio-circles/public/routes/circles.js 1.65 kB {0} [可选] [内置] [65] ./~/meanio-circles/ public/services/circles.js 515 字节 {0} [可选] [内置] [66] ./~/meanio-system/public/routes/system.js 1.27 kB {0} [可选] [内置] [67] ./~/meanio-system/public/services/config.js 577 字节 {0} [可选] [内置] [68] ./~/meanio-system/public/services/global.js 3.94 kB {0} [可选] [内置] [69] ./~/meanio-system/public/services/interceptor.js 913 字节 {0} [可选] [内置] [70] ./~/meanio-system/public/services/menus .js 228 字节 {0} [可选] [内置] [71] ./~/meanio-system/public/system.js 537 字节 {0} [可选] [内置] [72] ./~/meanio-users/public/controllers/meanUser.js 4.18 kB {0} [可选] [内置] [73] ./~/meanio- users/public/index.js 40 字节 {0} [可选] [内置] [74] ./~/meanio-users/public/routes/auth.js 359 字节 {0} [可选] [内置] [75] ./~/meanio-users/public/services/meanUser.js 6.79 kB {0} [可选] [内置] [18:11:08] 6.03 秒后完成'webpack:build-dev'
关于如何解决这个问题的任何想法?我不确定是否有东西被缓存在某处或什么地方?我在输出中看到的唯一半有用的东西是 CSSLint 问题,但我不确定以前没有发生过这种情况,如果它是罪魁祸首,我无法在任何地方找到解决它的方法.
更新 我在 gulp/development.js 文件中删除了对 CSSLint 的引用,它又可以工作了,所以肯定是 CSSLint 包导致了这种情况。我对 npm 很陌生,当没有更新依赖版本时,这怎么可能会工作并且突然退出工作?