safe_yaml: uninitialized constant Psych::Nodes (NameError)

using windows 8 have this uninitialized constant problem with safe_yaml => safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb:4:in <class:PsychResolver>' *unless* I run the command with bundle exec before the command. I've triedgem update` and nothing changed.

Any ideas?

About this issue

  • Original URL
  • State: open
  • Created 10 years ago
  • Comments: 44

Commits related to this issue

Most upvoted comments

Had the same problem. Fixed this by using Psych 2.0.5:

gem uninstall psych
gem install psych -v 2.0.5

Not sure if that was the most elegant solution.

Hey,

gem cleanup

… fixed it for me

Regards,

gem cleanup work for me

Doing gem update --system and then gem update solved the problem for me.

‘bundle exec’ worked for me…

-> jekyll serve # I get the error

-> bundle exec jekyll serve # no error :) happy days

you can put this in your .zshrc (or similar) to make it happen automatically:

# Bundle exec commands
bundle_commands=( rake spec rspec cucumber cap watchr rails rackup jekyll )
function run_bundler_cmd () {
    if [ -e ./Gemfile ]; then
        echo "bundle exec $@"
        bundle exec $@
    else
        echo "$@"
        $@
    fi
}
for cmd in $bundle_commands
do
    alias $cmd="run_bundler_cmd $cmd"
done