Bundle command not found Windows x64

后端 未结 4 1583
不思量自难忘°
不思量自难忘° 2021-02-07 01:16

I just installed ruby with the Heroku Toolbelt, probem is that when I do bundle install it gives me this error:

sh.exe\": /c/Program Files (x86)/rub         


        
4条回答
  •  别那么骄傲
    2021-02-07 01:47

    For Windows users:

    I used gitbash to install bundler.

    gem install bundler
    

    and the bundler was installed successfully. Even after that i was facing the same issue.

    Found out that it was due to some permission issue in my case.

    Here is what i did:

    1. I fired up a command prompt (Note: with administrator privilege )
    2. I did gem install bundler once again and it installed.
    3. Now i could do something like bundle -v, It gave me the bundler version currently installed.
    4. I tried the same bundle -v using Git Bash but it still is not working somehow.
    5. I restarted my laptop, And surprisingly now it is works.

    Hope this is helpful to anyone.

提交回复
热议问题