Can't setup rails: psych/yaml issue

How do you install these libraries on Windows?

Install https://www.msys2.org/ , start a new console window, run gem install psych, it should say

Installing required msys2 packages: mingw-w64-ucrt-x86_64-libyaml

and complete successfully, then you can bundle install.