在一个目录中,我有一个 CoffeeScript 应用程序,当我键入“foreman start”时它运行良好。
在另一个目录中,我复制了该目录中的所有内容并再次键入“foreman start”。但它不运行。相反,我得到了这个错误。
20:44:39 web.1 | started with pid 90836
20:44:40 web.1 |
20:44:40 web.1 | node.js:201
20:44:40 web.1 | throw e; // process.nextTick error, or 'error' event on first tick
20:44:40 web.1 | ^
20:44:40 web.1 | Error: ENOENT, no such file or directory '/Users/cypher/git/heroku/falling-lightning-4940/node_modules/.bin/package.json'
20:44:40 web.1 | at Object.openSync (fs.js:230:18)
20:44:40 web.1 | at Object.readFileSync (fs.js:120:15)
20:44:40 web.1 | at Object.<anonymous> (/Users/cypher/git/heroku/falling-lightning-4940/node_modules/.bin/nodemon:10:26)
20:44:40 web.1 | at Module._compile (module.js:432:26)
20:44:40 web.1 | at Object..js (module.js:450:10)
20:44:40 web.1 | at Module.load (module.js:351:31)
20:44:40 web.1 | at Function._load (module.js:310:12)
20:44:40 web.1 | at Array.0 (module.js:470:10)
20:44:40 web.1 | at EventEmitter._tickCallback (node.js:192:40)
20:44:40 web.1 | process terminated
20:44:40 system | sending SIGTERM to all processes
我不明白。这两个目录应该完全相同。这怎么可能发生?