项目一直没有问题,今天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
网友评论