如何解决在 Windows 10 上安装 Ruby shopify-cli gem 后出错
在 Windows 10 系统上安装 Ruby gem shopify-cli 时出错。安装时遵循以下步骤。
-在 Windows 10 系统上安装了 Ruby+Devkit 3.0.2-1。
-安装后从终端成功安装了以下 gem: gem install shopify-cli
-如果您在安装后运行命令 shopify version 以检查 gem 是否安装正确,则会显示以下错误。
C:\WINDOWS\system32>shopify version
C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:253:in `mkdir': No such file or directory @ dir_s_mkdir - V:/.config (Errno::ENOENT)
from C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:253:in `fu_mkdir'
from C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:231:in `block (2 levels) in mkdir_p'
from C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:229:in `reverse_each'
from C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:229:in `block in mkdir_p'
from C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:211:in `each'
from C:/Ruby30-x64/lib/ruby/3.0.0/fileutils.rb:211:in `mkdir_p'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/vendor/deps/cli-kit/lib/cli/kit/config.rb:128:in `write_config'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/vendor/deps/cli-kit/lib/cli/kit/config.rb:55:in `set'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/lib/shopify-cli/context.rb:607:in `update_time_of_last_check'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/lib/shopify-cli/context.rb:560:in `new_version'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/lib/shopify-cli/core/entry_point.rb:13:in `call'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/bin/shopify:33:in `block in <main>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/shopify-cli-2.1.0/bin/shopify:32:in `<main>'
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。