Struggling with initial installation (Mac, M2)
Have looked around and seen others with the issue, but really struggling to solve.
WARNING: It looks like '/Users/user/.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
I added a file to my user, named .zshrc with the export PATH=$PATH:/Users/username/.local/bin but still not able to install correctly.
I know this is a very begginer question, so appreciate any responses / input.
2 Replies
Hi @MrPurpleHat. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The error message you're seeing is indicating that the directory where Wasp is installed (
/Users/**username**/.local/bin
) is not included in your system's PATH environment variable. The PATH environment variable is a list of directories that your system checks when you run a command. If the directory containing the command isn't in your PATH, you'll get an error message.
You've done the right thing by adding the export PATH=$PATH:/Users/**username**/.local/bin
line to your .zshrc
file. This line adds the Wasp installation directory to your PATH. However, changes to .zshrc
don't take effect immediately. You need to reload the shell configuration for the changes to take effect.
Here's how you can do that:
1. Open your terminal.
2. Run the following command: source ~/.zshrc
This command reloads the shell configuration, including the updated PATH.
After running this command, try running a Wasp command (like wasp new MyApp
). If everything is set up correctly, the command should run without any "not on your PATH" errors.
If you're still having trouble, it's possible that there's an issue with the way your .zshrc
file is set up. Make sure that the export PATH=$PATH:/Users/**username**/.local/bin
line is at the end of the file and that there are no syntax errors in the file that could be causing problems.
If you continue to experience issues, please refer to the Wasp Discord community (https://discord.com/channels/686873244791210014/1214888257595121684) and Github issues (https://github.com/wasp-lang/wasp/issues/112) for further assistance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @MrPurpleHat, 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?Did you try what the bot suggested? 🙂