首页 > 解决方案 > 无法访问插件插件

问题描述

嘿,我在部署应用程序时遇到问题,当我尝试部署他的应用程序时出现此错误

-----> 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 文件夹中

标签: heroku

解决方案


我遇到了类似的错误,我通过在我缺少的特定库上运行 npm install 来修复它。我会尝试重新安装 Heroku CLI,然后再次 npm install。如果您缺少特定的软件包,请尝试重新安装它。

作为参考,我有这个错误:

Installing dependencies

Installing node modules

npm ERR! ws not accessible from @heroku-cli/plugin-ci

我通过运行npm install ws网络套接字插件来修复它。


推荐阅读