Skip to content

It's not work when generator with mongodb #3

@iepngs

Description

@iepngs

npm version: v3.7.3
node version: v5.9.0
it's my environment above, and there are all details message info with error:

➜ nodejs mkdir koat
➜ nodejs cd koat
➜ koat yo k

欢迎使用 k !
k 是koa工程构建器,自带必备优秀的koa中间件。

? use db : mongodb
create config/config.js
create config/local.js
create view/index.xtpl
create view/layout/footer.xtpl
create view/layout/header.xtpl
create view/layout/layout.xtpl
create controller/index.js
create router/index.js
create test/index-router-spec.js
create package.json
create app.js

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

npm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN prefer global coffee-script@1.10.0 should be installed with -g

kerberos@0.0.11 install /Users/iepngs/koat/node_modules/kerberos
(node-gyp rebuild 2> builderror.log) || (exit 0)

CXX(target) Release/obj.target/kerberos/lib/kerberos.o

bson@0.2.22 install /Users/iepngs/koat/node_modules/bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

CXX(target) Release/obj.target/bson/ext/bson.o
koat@0.0.0 /Users/iepngs/koat
├── co@3.1.0
├─┬ co-urllib@0.2.3
│ ├── co-assert-timeout@0.0.5
│ ├─┬ co-readall@0.0.1
│ │ └─┬ readall@1.0.0
│ │ └── debug@0.7.4
│ ├── debug@0.8.1
│ ├── default-user-agent@0.0.1
│ ├── generator-supported@0.0.1
│ └── thunkify@2.1.2
├─┬ debug@2.0.0
│ └── ms@0.6.2
├─┬ koa@0.6.0
│ ├─┬ accepts@1.0.7
│ │ ├── mime-types@1.0.2
│ │ └── negotiator@0.4.7
│ ├── co@3.0.6
│ ├─┬ cookies@0.4.1
│ │ └── keygrip@1.0.1
│ ├── delegates@0.0.3
│ ├── dethroy@1.0.2
│ ├── error-inject@1.0.0
│ ├── escape-html@1.0.3
│ ├── finished@1.1.4
│ ├── fresh@0.2.4
│ ├── koa-compose@2.2.0
│ ├── koa-is-json@1.0.0
│ ├── only@0.0.2
│ ├─┬ set-type@1.0.1
│ │ └── mime@1.3.4
│ ├── statuses@1.0.4
│ └─┬ type-is@1.1.0
│ └── mime@1.2.11
├─┬ koa-bodyparser@1.3.0
│ ├─┬ co-body@1.0.0
│ │ ├── qs@1.0.2
│ │ └─┬ raw-body@1.1.7
│ │ ├── bytes@1.0.0
│ │ └── string_decoder@0.10.31
│ └── copy-to@2.0.1
├─┬ koa-compress@1.0.6
│ ├── bytes@0.3.0
│ └── compressible@1.1.1
├─┬ koa-generic-session@1.6.0
│ ├── crc@3.2.1
│ ├── parseurl@1.3.1
│ └─┬ uid-safe@1.0.3
│ ├── base64-url@1.2.0
│ └── native-or-bluebird@1.1.2
├─┬ koa-generic-session-mongo@0.1.1
│ ├── co-wrapper@0.0.2
│ └─┬ mongodb@1.4.40
│ ├─┬ bson@0.2.22
│ │ └── nan@1.8.4
│ ├── kerberos@0.0.11
│ └─┬ readable-stream@2.1.4
│ ├── buffer-shims@1.0.0
│ ├── core-util-is@1.0.2
│ ├── isarray@1.0.0
│ ├── process-nextick-args@1.0.7
│ └── util-deprecate@1.0.2
├─┬ koa-mongo@0.2.0
│ ├── debug@1.0.4
│ └── generic-pool@2.4.2
├─┬ koa-onerror@1.2.0
│ ├── copy-to@1.0.1
│ └─┬ swig@1.4.2
│ ├─┬ optimist@0.6.1
│ │ ├── minimist@0.0.10
│ │ └── wordwrap@0.0.3
│ └─┬ uglify-js@2.4.24
│ ├── async@0.2.10
│ ├─┬ source-map@0.1.34
│ │ └── amdefine@1.0.0
│ ├── uglify-to-browserify@1.0.2
│ └─┬ yargs@3.5.4
│ ├── camelcase@1.2.1
│ ├── decamelize@1.2.0
│ ├── window-size@0.1.0
│ └── wordwrap@0.0.2
├─┬ koa-router@3.4.0
│ ├── koa-compose@2.4.0
│ ├── methods@1.1.2
│ └─┬ path-to-regexp@1.5.0
│ └── isarray@0.0.1
├─┬ koa-static-cache@1.2.0
│ ├─┬ compressible@2.0.8
│ │ └── mime-db@1.23.0
│ ├── fs-readdir-recursive@1.0.0
│ └─┬ mime-types@2.0.14
│ └── mime-db@1.12.0
├─┬ koa-validator@0.6.3
│ ├─┬ jistype@0.1.0
│ │ └── coffee-script@1.10.0
│ └── validator@3.43.0
├── lru-cache@2.5.0
├─┬ mini-logger@1.0.0
│ ├── copy-to@1.0.1
│ ├─┬ error-formatter@1.0.5
│ │ └── utility@1.8.0
│ ├── iconv-lite@0.4.13
│ ├─┬ logfilestream@1.0.1
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ └── moment@2.8.4
│ └── sdk-base@1.0.1
├─┬ mocha@1.21.5
│ ├── commander@2.3.0
│ ├── diff@1.0.8
│ ├── escape-string-regexp@1.0.2
│ ├─┬ glob@3.2.3
│ │ ├── graceful-fs@2.0.3
│ │ ├── inherits@2.0.1
│ │ └─┬ minimatch@0.2.14
│ │ └── sigmund@1.0.1
│ ├── growl@1.8.1
│ ├─┬ jade@0.26.3
│ │ ├── commander@0.6.1
│ │ └── mkdirp@0.3.0
│ └─┬ mkdirp@0.5.0
│ └── minimist@0.0.8
├── should@3.3.2
├─┬ supertest@0.12.1
│ ├── methods@1.0.0
│ └─┬ superagent@0.18.0
│ ├── component-emitter@1.1.2
│ ├── cookiejar@1.3.2
│ ├── debug@0.7.4
│ ├── extend@1.2.1
│ ├─┬ form-data@0.1.2
│ │ ├─┬ combined-stream@0.0.7
│ │ │ └── delayed-stream@0.0.5
│ │ └── mime@1.2.11
│ ├── formidable@1.0.14
│ ├── methods@0.0.1
│ ├── mime@1.2.5
│ ├── qs@0.6.6
│ ├─┬ readable-stream@1.0.27-1
│ │ └── isarray@0.0.1
│ └── reduce-component@1.0.1
├── underscore@1.7.0
├── xtemplate@4.2.4
└── xtpl@3.1.9

npm WARN koat@0.0.0 No description
npm WARN koat@0.0.0 No repository field.
npm WARN koat@0.0.0 No license field.

➜ koat npm start

koat@0.0.0 start /Users/iepngs/koat
NODE_ENV=local DEBUG=koat node --harmony app.js

module.js:341
throw err;
^

Error: Cannot find module 'koa-sess-mongo-store'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/Users/iepngs/koat/app.js:42:18)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)

npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/5.9.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! koat@0.0.0 start: NODE_ENV=local DEBUG=koat node --harmony app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the koat@0.0.0 start script 'NODE_ENV=local DEBUG=koat node --harmony app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the koat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=local DEBUG=koat node --harmony app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs koat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls koat
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/iepngs/koat/npm-debug.log

then I did this:
npm install -g koa-sess-mongo-store
but it's also take error as above.., so how to resolve this problem? call for help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions