Could not find proper version of rubocop (0.41.2) in any of the sources

安装rubocop后,为atom-beautify进行ruby相关配置如下:

Could not find proper version of rubocop (0.41.2) in any of the sources_第1张图片
atom-beautify

保存代码后报错如下:

Could not find proper version of rubocop (0.41.2) in any of the sources�

解决方法:
Setting => Executables => Rubocop

Could not find proper version of rubocop (0.41.2) in any of the sources_第2张图片
Executables

/Users/XXX/.rvm/gems/ruby-xxx/bin/rubocop替换为 /Users/XXX/.rvm/gems/ruby-xxx/wrappers/rubocop即可。

Could not find proper version of rubocop (0.41.2) in any of the sources_第3张图片
image.png

你可能感兴趣的:(Could not find proper version of rubocop (0.41.2) in any of the sources)