'Failed to build gem native extension' on Windows 7 (The system cannot find the path specified)

前端 未结 7 1554
一生所求
一生所求 2020-12-15 18:47

The problem in short

I\'m on Windows and am getting the following error when running gem install json —platform=ruby:

The system canno         


        
7条回答
  •  爱一瞬间的悲伤
    2020-12-15 19:07

    How I fixed it:

    1. Downloaded the latest ruby installer from https://rubyinstaller.org/downloads/
    2. Ran the installer, following the prompts to install dependencies.
    3. Restarted my computer.
    4. Added the ruby/bin directory to my PATH.

提交回复
热议问题