Chef-client could not find chef-config on windows node

Hi,
i am having this issue on windows node when i run chef-client, i get this error and i have no clue how to fix it, please can you help?

Note: the node is not connected to the internet so i had to install all the gem offline.

PS C:\Users\chef-user> chef-client
C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/dependency.rb:319:in to_specs': Could not find 'chef-config' (= 12.15.19) among 3 4 total gem(s) (Gem::LoadError) Checked in 'GEM_PATH=C:/Users/chef-user/.gem/ruby/2.3.0;C:/Ruby23-x64/lib/ruby/gems/2.3.0', executegem envfor more in formation from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/specification.rb:1438:inblock in activate_dependencies’
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/specification.rb:1427:in each' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/specification.rb:1427:inactivate_dependencies’
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/specification.rb:1409:in activate' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:68:inblock in gem’
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:in synchronize' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:67:ingem’
from C:/Ruby23-x64/bin/chef-client:22:in `'
PS C:\Users\chef-user>
PS C:\Users\chef-user>
PS C:\Users\chef-user>
PS C:\Users\chef-user> gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 2.5.1
  • RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x64-mingw32]
  • INSTALLATION DIRECTORY: C:/Ruby23-x64/lib/ruby/gems/2.3.0
  • USER INSTALLATION DIRECTORY: C:/Users/chef-user/.gem/ruby/2.3.0
  • RUBY EXECUTABLE: C:/Ruby23-x64/bin/ruby.exe
  • EXECUTABLE DIRECTORY: C:/Ruby23-x64/bin
  • SPEC CACHE DIRECTORY: C:/Users/chef-user/.gem/specs
  • SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData
  • RUBYGEMS PLATFORMS:
    • ruby
    • x64-mingw32
  • GEM PATHS:
    • C:/Ruby23-x64/lib/ruby/gems/2.3.0
    • C:/Users/chef-user/.gem/ruby/2.3.0
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:
  • SHELL PATH:
    • C:\Ruby23-x64\bin
    • C:\Windows\system32
    • C:\Windows
    • C:\Windows\System32\Wbem
    • C:\Windows\System32\WindowsPowerShell\v1.0\
    • C:\opscode\chef\bin\

You probably will have an easier time if you install the MSI package from https://downloads.chef.io/chef-client/windows/

If you really need to install with a custom ruby install and installing gems, then I would recommend getting your install process working on a machine with access to the internet so you can compare it with the non-connected machine. Make sure that stuff like gem list is identical between the two systems.