无法访问插件插件

时间:2021-03-24 14:08:52

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

1 个答案:

答案 0 :(得分:1)

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

作为参考,我遇到了这个错误:

Installing dependencies

Installing node modules

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

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

相关问题