【发布时间】:2021-02-14 03:18:15
【问题描述】:
由于 Netlify 不再满足我的需求(我需要后端功能),我正在尝试通过 Heroku 启动我的 Nuxt SSR/Universal 应用程序。按照教程here,然后尝试通过使用third-party buildpacks来处理后续错误,结果出现以下错误:
npm ERR! @heroku/buildpack-registry not accessible from @heroku-cli/plugin-buildpacks
上下文的完整输出:
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=false
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): 14.x
engines.npm (package.json): unspecified (use default)
Resolving node version 14.x...
Downloading and installing node 14.15.0...
Using default npm version: 6.14.8
-----> Installing dependencies
Installing node modules
npm ERR! @heroku/buildpack-registry not accessible from @heroku-cli/plugin-buildpacks
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.dVBXd/_logs/2020-11-01T03_35_25_039Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
据我所知,我的本地 @heroku 副本上没有 buildpack-registry 文件夹,所以我不知道该文件夹应该有什么。我有用于 npm 的 Heroku CLI,运行 heroku buildpacks 得到我:
1. heroku/nodejs
2. https://github.com/stomita/heroku-buildback-phantomjs.git
应该都是有效的。我尝试在干净的环境中进行部署,结果相同。
对不起,如果这个问题有点漫无边际,我只是不知道从哪里开始尝试解决这个问题。
【问题讨论】: