【发布时间】:2021-11-29 23:30:02
【问题描述】:
这是我在尝试将我的应用上传到 Heroku 时经常遇到的错误,难怪我做错了什么。
我已经更新了 node_modules 重新安装了它们 已在 vs 代码中安装并运行 cli。
npm ERR! valid-url not accessible from @heroku-cli/plugin-buildpacks
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.Zudji/_logs/2021-10-11T07_16_45_740Z-debug.log
更新 -
小更新!实际上发生的事情是我错过了 pakage.json 中的 npm 版本和节点版本,我将它们添加到我的 package.json 文件中,但不知何故,即使在多次提交之后它也没有在 git 存储库中得到更新,所以我所做的是我使用了: git push -f 起源大师。强制将其推送到存储库中,一旦更新,Heroku 就开始阅读它并且构建成功,但感谢您的帮助。
【问题讨论】:
标签: node.js heroku npm node-modules heroku-cli