Нетронутая и нокогири проблема при запуске 'rails generate rspec: install' - PullRequest
0 голосов
/ 13 ноября 2018

Я хотел бы заранее поблагодарить вас за всех, кто ответил на мой вопрос ... Я начинаю новый проект rails, но сталкиваюсь с этой проблемой, когда запускаю 'rails generate rspec: install'.

Ignoring bindex-0.5.0 because its extensions are not built.  Try: gem 
pristine bindex --version 0.5.0
Ignoring bootsnap-1.3.2 because its extensions are not built.  Try: gem 
pristine bootsnap --version 1.3.2
Ignoring byebug-10.0.2 because its extensions are not built.  Try: gem 
pristine byebug --version 10.0.2
/Library/Ruby/Gems/2.3.0/gems/bundler- 
1.16.6/lib/bundler/spec_set.rb:91:in `block in materialize': Could not 
find nokogiri-1.8.5 in any of the sources (Bundler::GemNotFound)

from /Library/Ruby/Gems/2.3.0/gems/bundler- 1.16.6/lib/bundler/spec_set.rb:85:in `map!'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/spec_set.rb:85:in `materialize'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/definition.rb:171:in `specs'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/definition.rb:238:in `specs_for'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/definition.rb:227:in `requested_specs'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:108:in `block in definition_method'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:20:in `setup'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler.rb:107:in `setup'
from /Library/Ruby/Gems/2.3.0/gems/bundler-1.16.6/lib/bundler/setup.rb:20:in `<top (required)>'
from /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/lib/spring/commands.rb:33:in `<module:Spring>'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/lib/spring/commands.rb:4:in `<top (required)>'
from /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/lib/spring/server.rb:9:in `<top (required)>'
from /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/lib/spring/client/server.rb:9:in `call'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
from /Users/stanleychoo/Public/todos-api/vendor/bundle/gems/spring-2.0.2/bin/spring:49:in `<main>'

Я установил конкретную версию gems и выполнил команды на консоли - 'gem pristine --all', 'gem pristine bindex --version 0.5.0', 'gem pristine bootsnap --version 1.3.2', 'gem нетронутый byebug - версия 10.0.2'

Но мои усилия не изменили Из сообщения об ошибке я замечаю, что мои драгоценные камни находятся в /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/gems/2.3.0 вместо /Users/stanleychoo/.rbenv/versions/2.3.7/lib/ruby/2.3.0/rubygems/core_ext

Заранее спасибо.

...