moajs / moa-api

一个基于node express快速开发api类后端的框架,适用于angularjs和ionic等前后端分离的项目
https://github.com/moajs/moa-api
MIT License
250 stars 55 forks source link

moajs 对npm 版本有要求吗 #17

Open zhongxia245 opened 8 years ago

zhongxia245 commented 8 years ago

报这个错误, 是不是moajs 对 npm 的版本有要求?

mongodb://127.0.0.1:27017/test
fs.js:856
  return binding.readdir(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, scandir '/Users/zhongxia/Code/nodejs/api/node_modules/base2/node_modules/base2-express-middlewares/lib'
    at Error (native)
    at Object.fs.readdirSync (fs.js:856:18)
    at requireDirectory (/Users/zhongxia/Code/nodejs/api/node_modules/require-directory/index.js:59:6)
    at module.exports (/Users/zhongxia/Code/nodejs/api/node_modules/mount_plugin/index.js:3:13)
    at EventEmitter.app.mount_plugins (/Users/zhongxia/Code/nodejs/api/node_modules/base2/app.js:35:3)
    at Object.global_middlewares (/Users/zhongxia/Code/nodejs/api/node_modules/base2/lifecycle.js:41:11)
    at module.exports (/Users/zhongxia/Code/nodejs/api/node_modules/base2/app.js:90:8)
    at main (/Users/zhongxia/Code/nodejs/api/node_modules/base2/index.js:4:29)
    at Object.<anonymous> (/Users/zhongxia/Code/nodejs/api/app.js:8:27)
    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 Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/zhongxia/Code/nodejs/api/bin/www:7:11)
Program node ./bin/www exited with code 1

Starting child process with 'node ./bin/www'
log_path is exist, no operation!