相关疑难解决方法(0)

Heroku:"没有为此应用检测到默认语言"节点应用程序抛出的错误

我正在学习NodeJS,我正在学习的课程有几个项目,按部分排列.我将所有项目都放在一个主文件夹下,这也是一个git存储库.

主文件夹中的每个子文件夹都是一个节点项目,完整的package.json和相关的依赖项node_modules.问题是当我尝试将节点应用程序推送到一个这样的文件夹(todo-api)到heroku时,我收到以下错误 -

remote: Compressing source files... done.
remote: Building source:
remote: 
remote:  !     No default language could be detected for this app.
remote:                         HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote:                         See https://devcenter.heroku.com/articles/buildpacks
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !       Push rejected to agile-forest-32749.
remote: 
To https://git.heroku.com/agile-forest-32749.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to …
Run Code Online (Sandbox Code Playgroud)

javascript git heroku node.js

7
推荐指数
6
解决办法
2万
查看次数

标签 统计

git ×1

heroku ×1

javascript ×1

node.js ×1