我在mean.io中安装了必要的组件。
在我的系统中(ubuntu)/ home / mukund / MeanApp3是app目录
在终端i进入目录并运行gulp。然后我得到了以下
Invoking gulp - development
[17:37:22] Using gulpfile ~/MeanApp3/gulpfile.js
[17:37:22] Starting 'clean'...
[17:37:22] Finished 'clean' after 5.45 ms
[17:37:22] Starting 'default'...
[17:37:22] Starting 'coffee'...
[17:37:22] Finished 'coffee' after 9.72 ms
[17:37:22] Starting 'clean'...
[17:37:22] Starting 'less'...
[17:37:22] Starting 'csslint'...
[17:37:22] Starting 'env:development'...
[17:37:22] Finished 'env:development' after 21 μs
[17:37:22] Starting 'devServe'...
[17:37:23] Finished 'devServe' after 68 ms
[17:37:23] Starting 'watch'...
[17:37:30] Finished 'watch' after 7.86 s
[17:37:30] Finished 'clean' after 8.13 s
[17:37:31] [nodemon] v1.3.7
[17:37:31] [nodemon] to restart at any time, enter `rs`
[17:37:31] [nodemon] watching: *.*
[17:37:31] [nodemon] starting `node --debug server.js`
debugger listening on port 5858
loading docs for: /home/mukund/MeanApp3/packages/core/articles
Mean app started on port 3000 (development) cluster.worker.id: 0
/home/mukund/MeanApp3/packages/custom/i18n/public/assets/lib/ng-i18next/dist/ng-i18next.js not found
/home/mukund/MeanApp3/packages/core/users/public/assets/lib/angular-jwt/dist/angular-jwt.min.js not found
/home/mukund/MeanApp3/packages/core/admin/public/assets/lib/ng-clip/src/ngClip.js not found
/home/mukund/MeanApp3/packages/custom/i18n/public/assets/lib/angular-sanitize/angular-sanitize.js not found
/home/mukund/MeanApp3/packages/core/admin/public/assets/lib/zeroclipboard/dist/ZeroClipboard.js not found
/home/mukund/MeanApp3/packages/custom/i18n/public/assets/lib/i18next/i18next.js not found
[17:37:35] csslint: 3 files lint free
[17:37:35] Finished 'csslint' after 12 s
[17:37:36] Finished 'less' after 14 s
[17:37:36] Starting 'development'...
[17:37:36] Finished 'development' after 9.69 μs
如果我去浏览器并运行localhost:3000,我将只获得一个空白页面,但选项卡中的页面标题可以看作
Mean-A Moedern Stack - Development
在终端中,这些附加细节出现
GET / 304 - - 24.118 ms
GET /theme/assets/css/loginForms.css 304 - - 9.301 ms
GET /theme/assets/css/theme.css 304 - - 9.959 ms
GET /i18n/assets/css/i18n.css 304 - - 11.977 ms
GET /admin/assets/css/admin.css 304 - - 13.608 ms
GET /system/assets/css/common.css 304 - - 15.485 ms
GET /modules/rtl.css 304 - - 0.539 ms
GET /articles/assets/css/articles.css 304 - - 6.243 ms
GET /system/system.js 304 - - 19.669 ms
GET /admin/controllers/admin.js 304 - - 8.447 ms
GET /admin/controllers/example.js 304 - - 10.371 ms
GET /admin/controllers/modules.js 304 - - 12.814 ms
GET /admin/controllers/settings.js 304 - - 10.288 ms
GET /admin/controllers/themes.js 304 - - 12.148 ms
GET /admin/controllers/users.js 304 - - 1.169 ms
GET /admin/directives/editable.js 304 - - 3.844 ms
GET /admin/routes/admin.js 304 - - 4.394 ms
GET /admin/services/module-settings.js 304 - - 5.868 ms
GET /admin/services/modules.js 304 - - 6.765 ms
GET /admin/services/settings.js 304 - - 1.499 ms
GET /admin/services/users.js 304 - - 2.813 ms
GET /articles/controllers/articles.js 304 - - 2.021 ms
GET /articles/routes/articles.js 304 - - 2.774 ms
GET /articles/services/articles.js 304 - - 0.826 ms
GET /system/controllers/header.js 304 - - 1.777 ms
GET /system/controllers/index.js 304 - - 6.418 ms
GET /system/routes/system.js 304 - - 6.365 ms
GET /system/services/global.js 304 - - 6.513 ms
GET /system/services/interceptor.js 304 - - 5.831 ms
GET /system/services/menus.js 304 - - 7.324 ms
GET /users/services/meanUser.js 304 - - 3.340 ms
GET /users/controllers/meanUser.js 304 - - 4.214 ms
GET /users/routes/auth.js 304 - - 5.062 ms
GET /i18n/controllers/i18n.js 304 - - 3.131 ms
GET /i18n/routes/i18n.js 304 - - 4.760 ms
GET /i18n/services/i18n.js 304 - - 6.222 ms
GET /theme/controllers/theme.js 304 - - 2.101 ms
GET /theme/routes/theme.js 304 - - 3.077 ms
GET /theme/services/theme.js 304 - - 1.731 ms
GET /_getModules 304 - - 1.140 ms
GET /admin/controllers/example.js 304 - - 0.655 ms
GET /admin/controllers/modules.js 304 - - 0.730 ms
GET /favicon.ico 200 - - 3.458 ms
GET / 200 - - 1.850 ms
GET /i18n/assets/css/i18n.css 200 48 - 7.545 ms
GET /system/assets/css/common.css 200 921 - 8.409 ms
GET /modules/rtl.css 200 0 - 0.330 ms
GET /theme/assets/css/loginForms.css 200 - - 7.779 ms
GET /theme/assets/css/theme.css 200 - - 7.942 ms
GET /admin/assets/css/admin.css 200 - - 9.280 ms
GET /articles/assets/css/articles.css 200 94 - 20.396 ms
GET /system/system.js 200 512 - 17.586 ms
GET /admin/controllers/admin.js 200 - - 22.030 ms
GET /admin/controllers/example.js 200 545 - 5.629 ms
GET /admin/controllers/modules.js 200 413 - 5.782 ms
GET /admin/controllers/settings.js 200 - - 0.652 ms
GET /admin/controllers/themes.js 200 - - 1.263 ms
GET /admin/services/module-settings.js 200 992 - 1.984 ms
GET /admin/controllers/users.js 200 - - 4.516 ms
GET /admin/routes/admin.js 200 - - 2.388 ms
GET /admin/directives/editable.js 200 - - 4.283 ms
GET /admin/services/modules.js 200 341 - 0.568 ms
GET /admin/services/settings.js 200 1007 - 0.661 ms
GET /admin/services/users.js 200 314 - 1.660 ms
GET /articles/services/articles.js 200 301 - 1.223 ms
GET /articles/controllers/articles.js 200 - - 1.952 ms
GET /articles/routes/articles.js 200 - - 1.754 ms
GET /system/controllers/header.js 200 - - 0.888 ms
GET /system/controllers/index.js 200 - - 0.878 ms
GET /system/routes/system.js 200 - - 0.677 ms
GET /system/services/global.js 200 455 - 1.105 ms
GET /system/services/interceptor.js 200 826 - 1.335 ms
GET /system/services/menus.js 200 218 - 2.144 ms
GET /users/controllers/meanUser.js 200 - - 1.132 ms
GET /users/routes/auth.js 200 - - 0.694 ms
GET /users/services/meanUser.js 200 - - 1.607 ms
GET /i18n/controllers/i18n.js 200 240 - 0.464 ms
GET /i18n/routes/i18n.js 200 233 - 1.042 ms
GET /i18n/services/i18n.js 200 123 - 2.228 ms
GET /theme/controllers/theme.js 200 254 - 0.546 ms
GET /theme/routes/theme.js 200 249 - 0.645 ms
GET /theme/services/theme.js 200 126 - 0.492 ms
GET /_getModules 200 339 - 0.409 ms
GET /favicon.ico 200 - - 1.030 ms
GET /favicon.ico 304 - - 0.806 ms
我对mean.io一无所知,我希望能够学习它。这真的是应该如何运行应用程序?
我只想要一个页面说明hellow world ..如何检查我是否正确安装和配置了mean.io?
我安装了node.js,mongodb,swagger-express,bower gulp,i18next
有人请帮忙
答案 0 :(得分:1)
git config --global url."https://".insteadOf git://
然后运行
npm cache clean
bower cache clean
之后再次运行npm install。我为我做了伎俩。
答案 1 :(得分:1)
您可以在配置文件中更改端口和数据库名称。
用于开发的config / env / development.js和用于生产的config / env / production.js。