在windows 10系统上安装ruby gem shopify cli时出错。安装时遵循以下步骤。
-在windows 10系统上安装了ruby+devkit 3.0.2-1。
-安装后已从终端成功安装以下gem:gem install shopify cli
-如果在安装后运行shopifversion命令检查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>'
暂无答案!
目前还没有任何答案,快来回答吧!