美文网首页
pod install Errno::ENOENT - No

pod install Errno::ENOENT - No

作者: HotPotCat | 来源:发表于2021-01-21 15:13 被阅读0次

    项目一直没有问题,今天pod install突然报错了

    Errno::ENOENT - No such file or directory
    

    虽然报错但是能够install成功,项目能够正常跑
    rvm list看了下:

    Warning! PATH is not properly set up, /Users/zaizai/.rvm/gems/ruby-2.6.3/bin is not at first place.
             Usually this is caused by shell initialization files. Search for PATH=... entries.
             You can also re-add RVM to your profile by running: rvm get stable --auto-dotfiles
             To fix it temporarily in this shell session run: rvm use ruby-2.6.3
             To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.
    =* ruby-2.6.3 [ x86_64 ]
    
    # => - current
    # =* - current && default
    #  * - default
    

    有警告,rvm reset重启终端再pod install就没有报错了。可以多reset几次,reset后没有任何输出就直接重启终端。

    ➜  ~ rvm reset
    Warning! PATH is not properly set up, /Users/zaizai/.rvm/gems/ruby-2.6.3/bin is not at first place.
             Usually this is caused by shell initialization files. Search for PATH=... entries.
             You can also re-add RVM to your profile by running: rvm get stable --auto-dotfiles
             To fix it temporarily in this shell session run: rvm use ruby-2.6.3
             To ignore this error add rvm_silence_path_mismatch_check_flag=1 to your ~/.rvmrc file.
    ➜  ~ rvm reset
    

    相关文章

      网友评论

          本文标题:pod install Errno::ENOENT - No

          本文链接:https://www.haomeiwen.com/subject/ekfdzktx.html