首页 > 解决方案 > Heroku 本地部署失败

问题描述

我正在尝试部署 heroku 服务器并遇到此错误。我将 Procfile.txt 包含在根文件夹中,在该文本文件中我有 web:npm start

$ heroku local web
[OKAY] Loaded ENV .env File as KEY=VALUE Format
[WARN] ENOENT: no such file or directory, open 'Procfile'
[OKAY] package.json file found - trying 'npm start'
9:42:52 PM web.1 |  'npm' is not recognized as an internal or external command,
9:42:52 PM web.1 |  operable program or batch file.
[DONE] Killing all processes with signal  SIGINT
9:42:52 PM web.1 Exited with exit code null

标签: node.jsheroku

解决方案


推荐阅读