How to stop the 'gem' utility from accessing my home directory?

后端 未结 6 1430
挽巷
挽巷 2021-02-01 06:16

When I run

gem install 

command the gem utility tries to access my home directory. It contains some non-latin char

6条回答
  •  面向向阳花
    2021-02-01 07:10

    It's simpler to write:

    @ECHO OFF
    SET HOMEPATH=
    IF NOT "%~f0" == "~f0" GOTO :WinNT
    ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
    GOTO :EOF
    :WinNT
    @"ruby.exe" "%~dpn0" %*
    

    In this case you don't need to write your path and can replace or redistribute with file for new installations

提交回复
热议问题