我正在学习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)