Friday, November 22, 2024

macos – Why cannot I set up oh-my-zsh to a Mac in China?

China blocks the installer you’re calling in response to the mission Readme.md.

Strive:

sh -c "$(curl -fsSL https://set up.ohmyz.sh/)"

If that additionally fails, very first thing is to know if you happen to may even obtain the set up script.

Run this command:

curl -L https://uncooked.github.com/ohmyzsh/ohmyzsh/grasp/instruments/set up.sh -o /dev/null ; echo $?

This may present any errors you may have suppressed in your first command and discard the output acquired from GitHub.com

If you cannot get to that server in your community, it’s possible you’ll have to strive one other or use a VPN. If that merchandise is unreachable, maybe get homebrew.sh to assist set up this? It has another assist however provides steps if you happen to do not want a bundle supervisor and simply need this one merchandise.

This is what success appears to be like like for me with the above check:

me@m2 ~ % curl -L https://uncooked.github.com/ohmyzsh/ohmyzsh/grasp/instruments/set up.sh -o /dev/null ; echo $?
  % Whole    % Acquired % Xferd  Common Velocity   Time    Time     Time  Present
                                 Dload  Add   Whole   Spent    Left  Velocity
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 18230  100 18230    0     0  84930      0 --:--:-- --:--:-- --:--:-- 84930
0

As soon as the script above works on a community, then you possibly can strive once more your steps. Take note of the final quantity reported (It is the 0 in my case, indicating no error within the curl), it is your error code and likewise any warnings you see that I did not paste above that drive subsequent steps….

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles