heroku - 无法访问插件插件
问题描述
嘿,我在部署应用程序时遇到问题,当我尝试部署他的应用程序时出现此错误
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/nodejs
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> 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.16.0...
Using default npm version: 6.14.11
-----> Installing dependencies
Installing node modules
npm ERR! @heroku-cli/plugin-addons not accessible from heroku
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.fHOrI/_logs/2021-03-24T14_04_47_335Z-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
为什么它不能访问部署正在生成的插件?在 node_module 文件夹中
解决方案
我遇到了类似的错误,我通过在我缺少的特定库上运行 npm install 来修复它。我会尝试重新安装 Heroku CLI,然后再次 npm install。如果您缺少特定的软件包,请尝试重新安装它。
作为参考,我有这个错误:
Installing dependencies
Installing node modules
npm ERR! ws not accessible from @heroku-cli/plugin-ci
我通过运行npm install ws
网络套接字插件来修复它。
推荐阅读
- python - 如何在 Tkinter 文本小部件中滚动最长的行
- instagram - 如何在 Instagram 上通过 API 发布待售商品
- flutter - Flutter 每分钟自动刷新 JSON
- python - daskarray.map_overlap(array, func) 是否支持多个参数?
- amazon-web-services - AWS Step Function 的 StartExecution api 是异步的吗?
- javascript - 如何保护使用客户端 PayPal 智能结账按钮进行的交易?
- sparql - 如何在 Virtuoso 中查询 RDFS 文件?
- node.js - Nodejs:如何将子域重定向到端口?
- java - 如何在 java 中将 JSONObject 转换为 DefaultMutableTreeNode?
- reactjs - Typescript Types - 关于使用推断的复合类型的问题