ruby - Can't seem to install rubocop gem using Rails 4 -
ruby - Can't seem to install rubocop gem using Rails 4 -
i tried installing rubocop adding suggested line rails project's gemfile:
gem 'rubocop', require: false
after running bundle
, installs , visible in gemfile.lock.
however when running $ rubocop
application's root receive error:
-bash: rubocop: command not found
i tried running $ rubocop
, , nil comes up.
i've tried running $ gem install rubocop
, no difference in behavior.
here excerpt gemfile.lock:
rubocop (0.27.0) astrolabe (~> 1.3) parser (>= 2.2.0.pre.6, < 3.0) powerpack (~> 0.0.6) rainbow (>= 1.99.1, < 3.0) ruby-progressbar (~> 1.4)
you have run command:
source ~/.bashrc
as right after running $ bundle
command gem installed , environment set in ~/.bashrc
, since continued utilize old bash session didn't rubocop
available command in bash. hence, either re-login in bash(close , open terminal again) or run command stated above.
ruby-on-rails ruby gem
Comments
Post a Comment