Unable to run the installer on a macbook

This is what I get:
share git:(main) ✗ curl -sSL https://get.wasp.sh/installer.sh | sh
Installing wasp version 0.16.2 (latest).

/Users/christoph/.local/share/wasp-lang/0.16.2 does not exist, creating it...
Could not create directory: /Users/christoph/.local/share/wasp-lang/0.16.2.
➜ share git:(main) ✗
share git:(main) ✗ curl -sSL https://get.wasp.sh/installer.sh | sh
Installing wasp version 0.16.2 (latest).

/Users/christoph/.local/share/wasp-lang/0.16.2 does not exist, creating it...
Could not create directory: /Users/christoph/.local/share/wasp-lang/0.16.2.
➜ share git:(main) ✗
`
5 Replies
kapa.ai
kapa.ai3d ago
Hi @christoph2806. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It looks like you're having permission issues when trying to install Wasp on your MacBook. The installer is unable to create the necessary directory at /Users/christoph/.local/share/wasp-lang/0.16.2. Here are a few things you can try: 1. Check directory permissions: Make sure you have write permissions to the .local/share directory in your home folder. 2. Create the directory manually: Try creating the directory structure yourself first:
mkdir -p ~/.local/share/wasp-lang/0.16.2

mkdir -p ~/.local/share/wasp-lang/0.16.2

Then run the installer again. 3. Use the correct installer URL: I notice you're using <https://get.wasp.sh/installer.sh> but the official URL is actually <https://get.wasp-lang.dev/installer.sh> as shown in the CLI documentation. Try running:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh

curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh

4. Try with sudo: If you're still having permission issues, you might need to run the installer with elevated privileges:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sudo sh

curl -sSL <https://get.wasp-lang.dev/installer.sh> | sudo sh

If you're using a Mac with Apple Silicon (M1, M2, etc.), you might also need to install Rosetta since the Wasp binary is built for x86 architecture. You can do this by running:
softwareupdate --install-rosetta
softwareupdate --install-rosetta
As mentioned in the Quick Start documentation. Let me know if any of these solutions work for you! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @christoph2806, 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?
Cam Pak
Cam Pak3d ago
You could try running it with sudo before so it can have access to create the directory. #4 in the AI response
MEE6
MEE63d ago
Wohooo @Cam Pak, you just became a Waspeteer level 3!
Vinny (@Wasp)
Vinny (@Wasp)2d ago
Yeah, Kapa is wrong about the URL. Both URLs will work 🙂 Give @Cam Pak 's tip a try and let us know if it works or not. Also, maybe @martinsos has an idea how to fix this -- I'll let him chime in if he does.
martinsos
martinsos2d ago
Hm no good idea really here, there isn't much info to go by! sudo is an option, but also should be avoided when possible> The question is, why is this happening: is there some restriction on your side, regarding permissions? Can you yourself create a file/dir in that location? Is your macbook setup in any special way?

Did you find this page helpful?