node.js - 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
解决方案
推荐阅读
- webpack - 如何让 webpack 在热键上重新编译
- node.js - 在 node.js 中,为什么我的数据在使用 Promise 读取异步文件后没有传回
- apache-spark - Spark-cassandra-connector 如何确定在 Cassandra 上查询的范围?
- docker - docker images alpine3.14 compile nginx 1.21.1 报错,但是docker images alpine3.12 可以,为什么?
- javascript - 尽管已填充,Javascript 无法访问 Html 表单数据
- python - 使用多个数据帧时如何优化 PySpark?
- asp.net - Database.Migrate 方法
- javascript - 是否可以使用 Neo4j 实现模式建模?
- javascript - 基于 es6 在网站上绑定 dom 事件的最佳方法是什么?
- javascript - 如何根据条件将查询链接到 mongoDB 数据库(mongoose)