无法升级ruby以安装shopify客户端

ldioqlga  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(289)

安装shopify客户端时出现此错误。

[sudo] password for massil: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'shopify-cli' instead of './shopify-cli-2.1.0.deb'
The following NEW packages will be installed
  shopify-cli
0 to upgrade, 1 to newly install, 0 to remove, and 1 not to upgrade.
Need to get 0 B/956 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /<path-to-.deb-file>/shopify-cli-2.1.0.deb shopify-cli all 2.1.0 [956 B]
(Reading database ... 337058 files and directories currently installed.)
Preparing to unpack .../shopify/shopify-cli-2.1.0.deb ...
ERROR:  Error installing shopify-cli:
    There are no versions of theme-check (~> 1.1) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?
    theme-check requires Ruby version >= 2.6. The current ruby version is 2.5.0.
dpkg: error processing archive /<path-to-.deb-file>/shopify-cli-2.1.0.deb (--unpack):
 new shopify-cli package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /<path-to-.deb-file>/shopify-cli-2.1.0.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

这似乎是ruby 2.5版中的一个问题。我试着用 apt ,但它一直告诉我它是最新的。然后我用 rbenvrvm 安装更高版本,但它似乎总是使用系统安装的版本来安装shopify客户端。
我正在使用 ubuntu 18.04 编辑:我最终使用了 gem install shopify-cli _2.7.2_ --version 用于安装。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题