我正在尝试通过Heroku启动我的Nuxt SSR/Universal应用程序,因为Netlify不再满足我的需求(我需要后端功能)。通过遵循教程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这些都应该是有效的。我尝试过在一个干净的环境中部署,结果是一样的。
抱歉,如果问题有点漫无边际,我只是不知道从哪里开始尝试解决这个问题。
发布于 2020-11-02 10:12:56
结果是我忘了安装@heroku-cli需要的一些包。运行下面的install命令为我修复了它,但您可能缺少我已有的包,或者我可能缺少您已有的包。
npm i @heroku/buildpack-registry async-file cli-ux got phoenix我最初感到困惑,因为没有@heroku模块,但它只能作为@heroku/buildpack-registry访问
https://stackoverflow.com/questions/64629076
复制相似问题