MacOs Error.
Hi everyone, I'm getting a fail when I try to install Wasp on my Mac.
Error is =
It looks like '/Users/cankaytaz/.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/cankaytaz/.local/bin
Can anyone help me with that situation?
27 Replies
ok great - so what you need to is actually what is written in the message: open your
.bash_profile
file and paste the following line in it: export PATH=$PATH:/Users/cankaytaz/.local/bin
.bash_profile
should be located in your. home dir, /Users/cankaytaz/.bash_profile
Lmk how it goes!With the latest updates, Mac has been changed the .profile name to .zprofile . Everything worked when I made the necessary changes.
Ah yes it switched to zsh -> awesome, thanks for sharing that!
So i initially had that issue, but then got past it, and immediately ran into another with the Node dependency, so I used Brew to install Node, but Wasp wants an older version than whats installed?!
MYMACHINE VenuisanCalendar-m8fw6 % curl -sSL https://get.wasp-lang.dev/installer.sh | sh Installing wasp version 0.11.1 (latest). Found an existing installation on the disk, at /Users/ME/.local/share/wasp-lang/0.11.1. Using it instead. Configuring wasp executable at /Users/ME/.local/bin/wasp to use wasp version 0.11.1. ============================================== WARNING: It looks like '/Users/ME/.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/ME/.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. MYMACHINE VenuisanCalendar-m8fw6 % export PATH=$PATH:/Users/adamblak/.local/bin MYMACHINE VenuisanCalendar-m8fw6 % wasp completion โ --- [Error] Node requirement not met: ------------------------------------------ Your Node version does not meet Wasp's requirements! You are running Node 20.4.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. Any clues on how to move past this?
MYMACHINE VenuisanCalendar-m8fw6 % curl -sSL https://get.wasp-lang.dev/installer.sh | sh Installing wasp version 0.11.1 (latest). Found an existing installation on the disk, at /Users/ME/.local/share/wasp-lang/0.11.1. Using it instead. Configuring wasp executable at /Users/ME/.local/bin/wasp to use wasp version 0.11.1. ============================================== WARNING: It looks like '/Users/ME/.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/ME/.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. MYMACHINE VenuisanCalendar-m8fw6 % export PATH=$PATH:/Users/adamblak/.local/bin MYMACHINE VenuisanCalendar-m8fw6 % wasp completion โ --- [Error] Node requirement not met: ------------------------------------------ Your Node version does not meet Wasp's requirements! You are running Node 20.4.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. Any clues on how to move past this?
aha got it - Wasp is currently requiring 18.12.0 because that is a LTS (long time support version). Check out why is that so and how to get it using nvm here: https://wasp-lang.dev/docs/quick-start#requirements
Quick Start | Wasp
Installation
yeah, I saw that, and my attempts to get nvm installed and functioning seem a little strained. reading the nvm OSX tips, it mentioned a tip that I tried with still no success:
MYMACHINE VenuisanCalendar-m8fw6 % touch ~/.zshrc
MYMACHINE VenuisanCalendar-m8fw6 % brew install nvm
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################################################ 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################################################################ 100.0%
Warning: nvm 0.39.3 is already installed and up-to-date.
To reinstall 0.39.3, run:
brew reinstall nvm
MYMACHINE VenuisanCalendar-m8fw6 % nvm install 18
zsh: command not found: nvm
ooof yeah, I've tried a lot of permeations now to properly install nvm, and downgrade but I can not seem to fit the environment to the requirements. I'll pause testing on this for now I guess. I like the premise of this but I'll have to wait till its requirements are a bit more OSX friendly.
@Moretea sorry to hear that -> Wasp is in Beta so most of the people using it already have some experience with Node and usually have node/nvm already installed, but of course we would love to make it easy to install for people who are new to it! Btw most of our users are Linux or Mac, and our team is also half Linux half Mac.
As for help with your issue, this is the first link I git on google when searching for it, and I am pretty confident one of our the suggestions in it will work: https://stackoverflow.com/questions/27651892/homebrew-installs-nvm-but-nvm-cant-be-found-afterwards .
While I can't be sure what is the issue in your situation, after reading the SO above, I would probably run
brew info nvm
and then add the suggested lines to .zprofile
(or whatever file is relevant for you), restart the terminal, and see if nvm is now available.
If not, I would go with the suggestion to uninstall the brew installation and install nvm
directly as explained here: https://github.com/nvm-sh/nvm#installing-and-updating -> there is also troubleshooting for MacOS there for some extra hints.Hiya, when I check if I have wasp by typing wasp -v it gives the following error - /Users/xxx/.local/bin/wasp: line 2: /Users/xxx/.local/share/wasp-lang/0.11.1/wasp-bin: Bad CPU type in executable
Are you on M1 mac?
I am
That is the issue then probably! Have you installed Rosetta? https://support.apple.com/en-us/HT211861#:~:text=Rosetta%20is%20not%20an%20app,it%20like%20you%20normally%20would.
Apple Support
If you need to install Rosetta on your Mac
Rosetta 2 enables a Mac with Apple silicon to use apps built for a Mac with an Intel processor.
@Kera I will close the issues for now, but let us know if you need more help!
Hey guys! I encountered the same issue. It would be nice that you note this somewhere in the official docs. Right now I needed to find discord link, join the group, search for the issue just to find a link that will redirect me to the Apple support. Simple note in the docs like "Make sure to install Rosetta on Mac with Apple Silicon". What do you think?
that's a very good point @kd240 ! I'm happy to do it, but if you'd like to add a line or two to our docs I'd be happy to give you credit as a contributor - let me know ๐
Sure thing! Comming right up!