简体   繁体   中英

Bundler not recognizing local gem path

For a site on its current server, running bundle install --path vendor/bundle --full-index runs with no issues. However, when I run this for the same site on my new server (same version of Bundler), I get:

NoMethodError: undefined method `spec' for nil:NilClass
An error occurred while installing userstamp (2.0.2), and Bundler cannot continue.
Make sure that `gem install userstamp -v '2.0.2'` succeeds before bundling.

That specific gem is defined like this in the Gemfile:

gem 'userstamp', '2.0.2', path: "vendor/local_gems/userstamp"

and the gem is present there. This means that Bundler is ignoring the path option in the Gemfile. Any suggestions on how to proceed?

  gem update --system version_from_working_system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM