无法安装heroku的插件
Cannot install heroku's plugin
你好,我想将我的 Java 网络应用程序部署到 heroku,但它一点也不顺利。
我需要执行此命令来部署 war 文件:
heroku deploy:war --war build/libs/GradleSample.war --app
然而,当我这样做时,我收到这条消息:deploy:war 不是 heroku 命令。
所以我需要运行这个命令:
heroku plugins:install https://github.com/heroku/heroku-deploy
但我收到此错误消息;
▸ npm ERR! node v6.9.5
▸ npm ERR! npm v3.10.10
▸ npm ERR! code EISDIR
▸ npm ERR! errno -21
▸ npm ERR! syscall read
▸
▸ npm ERR! eisdir EISDIR: illegal operation on a directory, read
▸ npm ERR! eisdir This is most likely not a problem with npm itself
▸ npm ERR! eisdir and is related to npm not being able to find a package.json in
▸ npm ERR! eisdir a package you are trying to install.
▸
▸ npm ERR! Please include the following file with any support request:
▸ npm ERR! /Users/.local/share/heroku/plugins/npm-debug.log
▸
▸ Try running again with HEROKU_DEBUG=1 to see more output.
我应该怎么做才能解决这个问题?我真的很想在 heroku 上部署我的应用程序。我需要你的帮助。谢谢。
运行 这个命令:
heroku plugins:install heroku-cli-deploy
然后运行:
heroku deploy:war build/libs/GradleSample.war
https://github.com/heroku/heroku-deploy repo is deprecated (as mentioned in the README)
你好,我想将我的 Java 网络应用程序部署到 heroku,但它一点也不顺利。 我需要执行此命令来部署 war 文件:
heroku deploy:war --war build/libs/GradleSample.war --app
然而,当我这样做时,我收到这条消息:deploy:war 不是 heroku 命令。
所以我需要运行这个命令:
heroku plugins:install https://github.com/heroku/heroku-deploy
但我收到此错误消息;
▸ npm ERR! node v6.9.5 ▸ npm ERR! npm v3.10.10 ▸ npm ERR! code EISDIR ▸ npm ERR! errno -21 ▸ npm ERR! syscall read ▸
▸ npm ERR! eisdir EISDIR: illegal operation on a directory, read ▸ npm ERR! eisdir This is most likely not a problem with npm itself ▸ npm ERR! eisdir and is related to npm not being able to find a package.json in ▸ npm ERR! eisdir a package you are trying to install. ▸
▸ npm ERR! Please include the following file with any support request: ▸ npm ERR! /Users/.local/share/heroku/plugins/npm-debug.log ▸
▸ Try running again with HEROKU_DEBUG=1 to see more output.
我应该怎么做才能解决这个问题?我真的很想在 heroku 上部署我的应用程序。我需要你的帮助。谢谢。
运行 这个命令:
heroku plugins:install heroku-cli-deploy
然后运行:
heroku deploy:war build/libs/GradleSample.war
https://github.com/heroku/heroku-deploy repo is deprecated (as mentioned in the README)