W
Wasp•9mo ago
strafe

download

I have an issue where i download a wasp SaaS template and set my path, and then when i open close and open my terminal i can't use any wasp commands. Any idea as to why its not recognizing wasp? My best guess is that im getting my path set up incorrect.
3 Replies
kapa.ai
kapa.ai•9mo ago
Hi @strafe. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you might be facing an issue with your system's PATH environment variable. The PATH is a system variable that your operating system uses to locate needed executables from the command line or Terminal window. If Wasp's executable is not in your PATH, your system won't be able to recognize wasp commands. Here's how you can add Wasp's executable to your PATH: 1. Open your shell configuration file. This will depend on the shell you're using: - For Bash shell: Open ~/.bashrc or ~/.bash_profile - For Zsh shell: Open ~/.zshrc 2. Add the following line at the end of the file:
export PATH="$HOME/.local/bin:$PATH"

export PATH="$HOME/.local/bin:$PATH"

This line adds the .local/bin directory located in your home directory to the beginning of the PATH variable. 3. Save the changes and close the file. 4. Reload the shell configuration by running the following command in your terminal: - For Bash shell: source ~/.bashrc or source ~/.bash_profile - For Zsh shell: source ~/.zshrc After following these steps, the .local/bin directory should be added to your PATH, and you should be able to run wasp commands without encountering the "not on your PATH" error. If you're using Windows, you should be running Wasp through the Windows Subsystem for Linux (WSL) as Wasp requires it for Windows users. If you're not already doing so, this could be the source of your issue. If you're still having trouble, please provide more details about your operating system and the exact error message you're seeing. This will help in diagnosing the problem. Sources: Discord support thread: Installation trouble > Answers (https://discord.com/channels/686873244791210014/1214888257595121684), Discord support thread: Unable to run "wasp start db" in my terminal > Answers (https://discord.com/channels/686873244791210014/1212373984453075004) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @strafe, 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?
miho
miho•9mo ago
The made a valid suggestion, please try and let's see what happens 🙂
strafe
strafeOP•9mo ago
👌
Want results from more Discord servers?
Add your server