【问题标题】:Can't start heroku locally无法在本地启动heroku
【发布时间】:2018-01-01 20:51:15
【问题描述】:

有人知道我在本地启动 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)

【问题讨论】:

  • 尝试运行heroku login
  • 我做到了。已登录
  • 我遇到了同样的问题。最近几天才开始开心。
  • 我刚刚找到另一个线程 - 为我解决了问题:stackoverflow.com/questions/33048784/…
  • 问题不一样@user670562

标签: node.js heroku npm


【解决方案1】:
  1. 在 Windows 上,heroku 有不同的 Procfile,命令为 heroku local web -f Procfile.windows

  2. 第一行是No ENV file found。检查项目文件夹是否有.env 文件。如果它丢失了,就会导致错误。

【讨论】:

    猜你喜欢
    • 2012-09-12
    • 1970-01-01
    • 2022-12-30
    • 2016-09-09
    • 2020-12-29
    • 2021-09-08
    • 1970-01-01
    • 1970-01-01
    • 2023-01-08
    相关资源
    最近更新 更多