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

After installing rubocop, configure the ruby-related configuration for atom-beautify as follows:

atom-beautify

After saving the code, the error is reported as follows:

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

Workaround:
Setting => Executables => Rubocop

Executables
will be /Users/XXX/.rvm/gems/ruby-xxx/bin/rubocopreplaced with /Users/XXX/.rvm/gems/ruby-xxx/wrappers/rubocopOK.

rubocop

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324735729&siteId=291194637