gpt4 book ai didi

ruby-on-rails - 权限被拒绝安装 rabl gem

转载 作者:行者123 更新时间:2023-12-04 00:05:38 27 4
gpt4 key购买 nike

我正在尝试安装 spree gem,但我在安装 gem 时遇到了一些问题。目前我在尝试安装 rabl(0.13.1) gem 时遇到错误。我得到的许可被拒绝。想知道如何解决这个错误,以便我可以回去完成安装狂欢。

ERROR:  While executing gem ... (Errno::EACCES)
Permission denied @ rb_file_s_symlink

Installing rabl 0.13.1
Errno::EACCES: Permission denied @ rb_file_s_symlink -
(fixtures/ashared/views_rails_3/users/phone_number.json.rabl,
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rabl-0.13.1/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl)
An error occurred while installing rabl (0.13.1), and Bundler cannot continue.
Make sure that `gem install rabl -v '0.13.1'` succeeds before bundling.

In Gemfile:
spree was resolved to 3.4.1, which depends on
spree_backend was resolved to 3.4.1, which depends on
spree_api was resolved to 3.4.1, which depends on
rabl

C:\Users\Michael\Desktop\ruby\pen>gem install rabl -v '0.13.1
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_file_s_symlink - (fixtures/ashared/views_rails_3/users/phone_number.json.rabl, C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rabl-0.13.1/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl)

C:\Users\Michael\Desktop\ruby\pen>gem install
ERROR: While executing gem ... (Gem::CommandLineError)
Please specify at least one gem name (e.g. gem build GEMNAME)

C:\Users\Michael\Desktop\ruby\pen>uby/gems/2.4
'uby' is not recognized as an internal or external command,
operable program or batch file.

最佳答案

您可以通过在 Windows 上以管理员身份运行终端(“使用 Ruby 启动命令提示符”、“Git Bash”或类似内容)来修复它。

关于ruby-on-rails - 权限被拒绝安装 rabl gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46940602/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com