PS C:\Users\SIYI\OneDrive\Escritorio\Proyectos\Ventas\ForSale> gem update --system
Installing RubyGems 3.4.15 ERROR: While executing gem ... (Errno::EACCES) Permission denied @ dir_s_mkdir - C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems
让宝石更新
尝试在管理员模式下运行powershell
以管理员身份使用命令提示符;它对我有用。只是一个简单的建议:作为 Web 开发人员,最好在 Windows 系统中使用 WSL。