You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting child process with 'node ./bin/www'
fs.js:856
return binding.readdir(pathModule._makeLong(path));
^
Error: ENOENT: no such file or directory, scandir '/Users/z/Projects/Node/moa2app/middlewares'
at Error (native)
at Object.fs.readdirSync (fs.js:856:18)
at requireDirectory (/Users/z/Projects/Node/moa2app/node_modules/require-directory/index.js:59:6)
at m (/Users/z/Projects/Node/moa2app/node_modules/mount-middlewares/index.js:20:10)
at Object.<anonymous> (/Users/z/Projects/Node/moa2app/app.js:10:50)
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/z/Projects/Node/moa2app/bin/www:7:11)
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)
at startup (node.js:140:18)
at node.js:1001:3
Program node ./bin/www exited with code 1
比如我
git clone --depth=1 https://github.com/moajs/moa2.git moa2app
,然后
npm start
就会报这种错:然后debug下mound-middlewares源码
The text was updated successfully, but these errors were encountered: