Unable to find wasp command

Hello again! I was able to get to the point of successful browser opening from running through the setup in terminal. However, I wasn't able to view anything on the webpage other than the Wasp Congrats-ish page even after checking over the code in VS code and moving some things around. I decided to re-run Wasp and my app, and after doing so, my nvm seems to be working but when I get to the point of wasp new <my project> it says zsh: command not found: wasp Before I had this issue it said something about looking in my ~/.bash_profile and adding an export of my local bin into the code of that file. Did that, didn't work. Also decided to look directly in my /.local/bin folder where wasp is and it says ❌ --- [Error] Node requirement not met: ------------------------------------------ Your Node version does not meet Wasp's requirements! You are running Node 16.13.0. Wasp requires Node ^18.12.0 to be installed and in PATH. Check Wasp documentation for more details: https://wasp-lang.dev/docs/quick-start#requirements. When I go back into another Terminal window, I'm able to actively verify that node/nvm is running... at V18.... I don't understand why it says it's not but I think it could possibly have something to do with why it overall is saying the wasp command isn't found. Can anyone help or explain what's going on? Would be much appreciated
4 Replies
Filip
Filip16mo ago
Hi @destructivebear, can you execute the following 3 commands in your terminal and paste the output here? Please format it as code (i.e., with three backticks) for easier reading:
node --version
which wasp
echo $PATH
node --version
which wasp
echo $PATH
And thanks for sticking with Wasp!
destructivebear
destructivebear16mo ago
v18.17.0
wasp not found
/Users/leveylex/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
v18.17.0
wasp not found
/Users/leveylex/.nvm/versions/node/v18.17.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Yet if I run
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
I get the same response:
Installing wasp version 0.11.1 (latest).

Found an existing installation on the disk, at /Users/leveylex/.local/share/wasp-lang/0.11.1. Using it instead.

Configuring wasp executable at /Users/leveylex/.local/bin/wasp to use wasp version 0.11.1.

==============================================

WARNING: It looks like '/Users/leveylex/.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/leveylex/.local/bin

wasp has been successfully installed! To create your first app, do:
- Add wasp to your PATH as described above.
- wasp new MyApp

Optional:
- to install bash completion for wasp, run wasp completion and follow the instructions.
Installing wasp version 0.11.1 (latest).

Found an existing installation on the disk, at /Users/leveylex/.local/share/wasp-lang/0.11.1. Using it instead.

Configuring wasp executable at /Users/leveylex/.local/bin/wasp to use wasp version 0.11.1.

==============================================

WARNING: It looks like '/Users/leveylex/.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/leveylex/.local/bin

wasp has been successfully installed! To create your first app, do:
- Add wasp to your PATH as described above.
- wasp new MyApp

Optional:
- to install bash completion for wasp, run wasp completion and follow the instructions.
MEE6
MEE616mo ago
Wohooo @destructivebear, you just became a Waspeteer level 1!
Filip
Filip16mo ago
As the warning message says:
It looks like '/Users/leveylex/.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/leveylex/.local/bin
It looks like '/Users/leveylex/.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/leveylex/.local/bin
You'll have to do this to be able to call wasp by name. Depending on your system, adding stuff to .bashrc or .bash_profile or .zshrc may require restarting the terminal/computer. For starters, try executing the following line directly in your terminal:
export PATH=$PATH:/Users/leveylex/.local/bin
export PATH=$PATH:/Users/leveylex/.local/bin
And then try calling wasp new from the same terminal. Does this work?
Want results from more Discord servers?
Add your server