C:\PROGRA~1\test-application\embedded\lib>gem-install-mixlib cli--debug--verbose--backtrace--version‘1.7.0’注意:调试模式打印所有异常,即使在获救时也是如此头部https://rubygems.org/api/v1/dependencies200 OK得到https://rubygems.org/api/v1/dependencies?gems=mixlib-cli200 OKC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:250处出现异常"Errno::EEXIST"-文件存在@dir_s_mkdir-C/PROGRA~1./test-aapplication/embedded/lib/ruby/gems/2.7.0C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/规格/mixlib-cli-1.7.0.gem规格C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/规格/mixlib-cli-1.7.0.gem规格C:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/extensions/x64-ming32/2.7.0/mixrib-cli-1.7.0C:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/extensions/x64-ming32/2.7.0/mixrib-cli-1.7.0C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/扩展/x64-ming32/2.7.0/mixrib-cli-1.7.0C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/扩展/x64-ming32/2.7.0/mixrib-cli-1.7.0C:\/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:250处出现异常"Errno::EEXIST"-文件存在@dir_s_mkdir-C:/PROGRA~1/test application/embedden/lib/rubi/gems/2.7.0/gems/mixlib-cli-1.7.0C/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/package.rb:492处出现异常"Errno::ENOENT"-没有这样的文件或目录@realpath_rec-C/PROGRA~1./test-aapplication/emembedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/GemfileC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/GemfileC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/GemfileC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixlib-cli-1.7.0/GemfileC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixlib-cli-1.7.0/GemfileC:/PROGRA~1/test-application/embedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/GemfileC/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/package.rb:492处出现异常"Errno::ENOENT"-没有这样的文件或目录@realpath_rec-C/PROGRA~1./test-aapplication/emembedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/许可证C:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/许可证C:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/许可证C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/许可证C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/许可证C:/PROGRA~1/test-application/embedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/LICENCEC/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/package.rb:492处出现异常"Errno::ENOENT"-没有这样的文件或目录@realpath_rec-C/PROGRA~1./test-aapplication/emembedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/注意C:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/通知C:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/通知C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/通知C/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/通知C:/PROGRA~1/test-application/embedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/注意C/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/package.rb:492处出现异常"Errno::ENOENT"-没有这样的文件或目录@realpath_rec-C/PROGRA~1./test-aapplication/emembedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/README.mdC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/README.mdC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/README.mdC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/README.mdC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/README.mdC:/PROGRA~1/test-application/embedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/README.mdC/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/package.rb:492处出现异常"Errno::ENOENT"-没有这样的文件或目录@realpath_rec-C/PROGRA~1./test-aapplication/emembedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/RakefileC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/RakefileC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/RakefileC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/RakefileC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/RakefileC:/PROGRA~1/test-application/embedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/RakefileC/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/package.rb:492处出现异常"Errno::ENOENT"-没有这样的文件或目录@realpath_rec-C/PROGRA~1./test-aapplication/emembedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0/libC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/lib/mixrib/cli.rbC:/PROGRA~1/test-application/enembedded/lib/ruby/2.7.0/fileutils.rb:1332处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/PROGRA~1/test/application/enembed/lib/rube/gems/2.7.0/gems/mixrib-cli-1.7.0/lib/mixrib/cli.rbC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1465处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/lib/mixrib/cli.rbC/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/fileutils.rb:1475处的异常"Errno::ENOENT"-没有这样的文件或目录@apply2files-C/PROGRA~1./test-aapplication/embedden/lib/rub/gems/2.7.0/gems/mixrib-cli-1.7.0/lib/mixrib/cli.rbC/PROGRA~1/test-application/ambedded/lib/ruby/2.7.0/rubygems/package.rb:519处的异常"Errno::ENOENT"-没有这样的文件或目录@rb_file_s_lstat-C:/Program Files/test-aapplication/ambedded/lib/ruby/gems/2.7.0/gems/mixlib-cli-1.7.0/lib异常"Gem::Package::PathError"(位于C/PROGRA~1/test-application/emembedded/lib/ruby/2.7.0/rubygems/Package.rb:522)-安装到C/PROGRA~1./test-aapplication的父路径lib/mixlib/cli.rb中/不允许使用embedded/lib/ruby/gems/2.7.0/gems/mixlib-cli-1.7.0错误:执行gem时。。。(Gem::Package::PathError)不允许安装到C/PROGRA~1/test-application/embedded/lib/ruby/gems/2.7.0/gems/mixrib-cli-1.7.0的父路径lib/mixlib/cli.rb中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:522:在"mkdir_p_safe中的块"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:516:in"each"C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:516:in"reduce"C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:516:在"mkdir_p_safe"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:438:在"extract_tar_gz中的块(2级)"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package/tar_reader.rb:67:in"each"C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:421:in`block in extract_tar_gz'C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:550:in`block-in-open_tar_gz'C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:547:在"wrap"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:547:在`open_tar_gz'中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:420:in `extract_tar_gz'C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:400:在"extract_files中的块(2级)"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package/tar_reader.rb:67:in"each"C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:397:在"extract_files中的块"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package/file_source.rb:30:在"打开"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package/file_source.rb:30:in `with_read_io'C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/package.rb:394:在"extract_files"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/installer.rb:865:在"extract_files"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/installer.rb:325:in"install"C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/resolver/specification.rb:93:在"install"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/requestronget.rb:195:在"安装中的块"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/requestronget.rb:183:在`each'中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/requestronget.rb:183:在"install"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/commands/install_command.rb:208:在"install_gem"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/commands/install_command.rb:224:in `block in install_gems'C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/commands/install_command.rb:217:在"each"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/commands/install_command.rb:217:在"install_gems"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/commands/install_command.rb:165:在"execute"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/command.rb:325:在`invoke_with_build_args'中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/command_manager.rb:178:在"process_args"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/command_manager.rb:148:在"run"中C:/PROGRA~1/test-application/embedded/lib/ruby/2.7.0/rubygems/gem_runner.rb:59:in"run"C:/PROGRA~1/test-application/embedded/bin/gem.cmd:29:in">
也许您可以在dockerdocker run -it --rm --name rake-tests -v ${PWD}:/srv/rubyfiles ruby:2.6 sh
中使用ruby。当您删除--rm
参数时,容器将保留,并且可以重用,并且每次运行容器时都可以避免重新下载bundle/gems。
在Windows上,我总是遇到bundle
或gems
的问题。