PATH PROBLEM WINDOW
I tried to install wasp but gets this error :
root@DESKTOP-I24FTFQ:/mnt/c/Users/bilal/Desktop/SmartEkkoProject# wasp version
Command 'wasp' not found, did you mean:
command 'wash' from deb reaver (1.6.5-1)
command 'asp' from deb asp (1.8-8build1)
command 'wamp' from deb python3-autobahn (21.11.1+dfsg1-2build1)
command 'warp' from deb libghc-wai-app-static-dev (3.1.7.1-1build5.1)
Try: apt install <deb name>
1 Reply
Hi @SEDIPEC. 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 the Wasp executable is not on your system's PATH. This means that your system doesn't know where to find the
wasp
command.
To resolve this issue, you need to add the directory containing the wasp
executable to your PATH. The Wasp executable is typically installed in the .local/bin
directory in your home directory.
Here's how you can add this directory to your PATH:
1. Open your shell configuration file. This could be one of the following, depending on your system configuration:
- For Bash shell: Open ~/.bashrc
or ~/.bash_profile
- For Zsh shell: Open ~/.zshrc
2. Add the following line at the end of the file:
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 the wasp
command without encountering the "Command 'wasp' not found" error.
This solution was discussed in a Discord support thread (https://discord.com/channels/686873244791210014/1214888257595121684) and is also part of the Wasp installation script as seen in this Github issue (https://github.com/wasp-lang/wasp/issues/1455).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @SEDIPEC, 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?