无法在本地启动heroku

时间:2017-07-26 13:32:56

标签: node.js heroku npm

有人知道当我尝试在本地启动heroku时我得到的错误是什么(在我在本地写Heroku之后我得到了这个错误):

[WARN] No ENV file found
15:23:12 worker.1   |  C:\Users\Marija\Documents\Projects\project\node_modules\natural\lib\natural\brill_pos_tagger\lib    \Brill_POS_Tagger.js:26
15:23:12 worker.1   |  logger.setLevel('WARN');
15:23:12 worker.1   |         ^
15:23:12 worker.1   |  TypeError: logger.setLevel is not a function
15:23:12 worker.1   |      at Object.<anonymous> (C:\Users\Marija\Documents\Projects\project\node_modules\natural\lib    \natural\brill_pos_tagger\lib\Brill_POS_Tagger.js:26:8)
15:23:12 worker.1   |      at Module._compile (module.js:570:32)
15:23:12 worker.1   |      at Object.Module._extensions..js (module.js:579:10)
15:23:12 worker.1   |      at Module.load (module.js:487:32)
15:23:12 worker.1   |      at tryModuleLoad (module.js:446:12)
15:23:12 worker.1   |      at Function.Module._load (module.js:438:3)
15:23:12 worker.1   |      at Module.require (module.js:497:17)
15:23:12 worker.1   |      at require (internal/module.js:20:19)
15:23:12 worker.1   |      at Object.<anonymous> (C:\Users\Marija\Documents\Projects\project\node_modules\natural\lib    \natural\index.js:81:26)
15:23:12 worker.1   |      at Module._compile (module.js:570:32)
   [DONE] Killing all processes with signal  null
   internal/util.js:183
  throw new errors.Error('ERR_UNKNOWN_SIGNAL', signal);
  ^

Error [ERR_UNKNOWN_SIGNAL]: Unknown signal: null
   at convertToValidSignal (internal/util.js:183:9)
   at ChildProcess.kill (internal/child_process.js:381:5)
   at EventEmitter.<anonymous> (C:\Users\Marija\AppData\Local\heroku\client\node_modules\foreman\lib\proc.js:54:11)
   at emitOne (events.js:120:20)
   at EventEmitter.emit (events.js:210:7)
   at ChildProcess.<anonymous> (C:\Users\Marija\AppData\Local\heroku\client\node_modules\foreman\lib\proc.js:50:13)
   at emitTwo (events.js:125:13)
   at ChildProcess.emit (events.js:213:7)
   at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

1 个答案:

答案 0 :(得分:0)

  1. 在Windows上,heroku具有不同的Procfile,命令为heroku local web -f Procfile.windows

  2. 第一行显示No ENV file found。检查项目文件夹中是否存在.env文件。如果缺少,则会导致错误。