Trying to globally install Wasp with ZSH

I have been trying to configure my device (MacOS M1 Pro Ventura 13.4) with 'wasp completion'. However, my profile is a zsh profile. I have tried using oh-my-zsh and other ways, but still cant get it to work. I am sure its something obvious, but any help would be super appreciated thanks everyone! #đŸ™‹questions
17 Replies
kapa.ai
kapa.ai•7mo ago
Hi @Sam Jakshtis. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To install Wasp globally on your MacOS device with a ZSH shell, you can follow these steps: 1. Open your terminal and run the following command to install Wasp:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh
This command downloads and runs the Wasp installer script. If you're using a Mac with an M1 chip, you might need to install Rosetta, as the Wasp binary is built for x86 and not for arm64 (Apple Silicon). You can install Rosetta by running softwareupdate --install-rosetta in your terminal (source (https://wasp-lang.dev/docs/quick-start#installation-1)). 2. After the installation, you might get a warning that the installation directory is not on your PATH. You can add it to your PATH by adding the following line into your .zshrc file:
export PATH=$PATH:<your_installation_directory>
export PATH=$PATH:<your_installation_directory>
Replace <your_installation_directory> with the directory where Wasp was installed. 3. To set up Bash completion, run the wasp completion command and follow the instructions. However, there's an open issue on the Wasp GitHub page about making Bash completion easier to discover and install, and it's mentioned that the instructions might not be clear for ZSH users (source (https://github.com/wasp-lang/wasp/issues/256)). There's also a closed issue that suggests updating the wasp completion help to mention .zshrc for MacOS (source (https://github.com/wasp-lang/wasp/issues/948)). Unfortunately, the exact steps to set up Bash completion for ZSH are not provided in the knowledge sources. You might want to check the Wasp documentation or ask for help in the Wasp community for more specific instructions. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Sam Jakshtis, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos
martinsos•7mo ago
Let me check with our Mac users: @miho @Vinny (@Wasp) any suggestions?
Sam Jakshtis
Sam JakshtisOP•7mo ago
@martinsos Thank you so much!
Vinny (@Wasp)
Vinny (@Wasp)•7mo ago
oof yeah this is definitely better suited for @miho I actually never installed wasp completions
Sam Jakshtis
Sam JakshtisOP•7mo ago
@Vinny (@Wasp) Out of curiosity, do you always use curl when building/starting new, or is there a better method?
Vinny (@Wasp)
Vinny (@Wasp)•7mo ago
to start a new wasp project?
Sam Jakshtis
Sam JakshtisOP•7mo ago
Essentially to have wasp on your system as a Mac user so as not to always have to run the curl command (which is what I am experiencing). I also apologize, more of a junior developer, but excited about Wasp
Vinny (@Wasp)
Vinny (@Wasp)•7mo ago
hm that doesn't sound right after you install it and add it to your path, it should always be there btw you don't need to install wasp completion to get wasp to work as expected what happens when you run wasp version?
martinsos
martinsos•7mo ago
Yeah, curl thing is just one time installation
Sam Jakshtis
Sam JakshtisOP•7mo ago
Thats interesting, I need to do it everytime I open my IDE (VS Code) or else it says zsh: command not found: wasp
MEE6
MEE6•7mo ago
Wohooo @Sam Jakshtis, you just became a Waspeteer level 1!
Sam Jakshtis
Sam JakshtisOP•7mo ago
When I do the curl and then my version is: wasp version
0.13.2
miho
miho•7mo ago
When you install Wasp with curl, did you see this warning:
WARNING: It looks like '/Users/<username>/.local/bin' is not on your PATH! You will not be able to invoke wasp from the terminal by its name.
You can add it to your PATH by adding following line into your profile file (~/.profile or ~/.zshrc or ~/.bash_profile or ~/.bashrc or some other, depending on your configuration):
export PATH=$PATH:/Users/<username>/.local/bin
WARNING: It looks like '/Users/<username>/.local/bin' is not on your PATH! You will not be able to invoke wasp from the terminal by its name.
You can add it to your PATH by adding following line into your profile file (~/.profile or ~/.zshrc or ~/.bash_profile or ~/.bashrc or some other, depending on your configuration):
export PATH=$PATH:/Users/<username>/.local/bin
Did you do something about it? đŸ˜„ You should add this line to your ~/.zshrc file:
export PATH=$PATH:/Users/<username>/.local/bin
export PATH=$PATH:/Users/<username>/.local/bin
Replace <username> with your username, echo $USER if you don't know it.
Sam Jakshtis
Sam JakshtisOP•7mo ago
Gosh I just needed to restart the terminal Thank you all for your help, super excited to be part of this community @miho @Vinny (@Wasp) @martinsos
Vinny (@Wasp)
Vinny (@Wasp)•7mo ago
oh crap. yeah. i forget this all the time too
martinsos
martinsos•7mo ago
Hehe no worries, I am glad it was that easy to solve :D!
Want results from more Discord servers?
Add your server