Last checked with Wasp 0.21.
This guide depends on external libraries or services, so it may become outdated over time. We do our best to keep it up to date, but make sure to check their documentation for any changes.Legacy Wasp installer
Starting from Wasp 0.21, installation is done through npm. The installation method using the script installer is now considered legacy and is not supported anymore. We'll keep it around for the foreseeable future to give users time to switch, but you will not be able to get newer versions until you migrate to npm-based installation.
How to migrate off the legacy installer
To switch to the new installation method, you can run our migration tool:
curl -sSL https://get.wasp.sh/installer.sh | sh -s -- migrate-to-npm
Afterwards, you can use the regular installation instructions to install Wasp through npm:
npm i -g @wasp.sh/wasp-cli@latest
Keep using the legacy installer
If you haven't yet migrated to the npm installer method, you can keep using the legacy installer, by running:
# Set x.y.z to the version you want to install, e.g. 0.20.1
# The installer will refuse to run without a specific version argument
curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -v x.y.z
You should only use the legacy installer as a stopgap while migrating workstations and CI to npm installations, as it can cause conflicts with the new method. For that reason, the installer will not work in the following cases:
- You have already installed Wasp through npm.
- You have already run the migration tool.
- You are trying to install Wasp >= 0.21.
- You are calling the installer without a version argument.
In any of these cases, the installer will print an error message and exit without installing Wasp. You can still switch back manually if needed.
Troubleshooting
I need to use versions older than Wasp 0.21
For your convenience, we have also published older versions of Wasp on npm (from 0.16 onwards), so after migrating to the npm method, you can keep developing on projects that haven't been upgraded yet.
You can run the npm install command with any given version to switch to that Wasp version:
npm i -g @wasp.sh/wasp-cli@0.16
npm i -g @wasp.sh/wasp-cli@0.17
npm i -g @wasp.sh/wasp-cli@0.18
npm i -g @wasp.sh/wasp-cli@0.19
npm i -g @wasp.sh/wasp-cli@0.20
I need to use versions older than Wasp 0.16
These versions are very out of date and we don't recommend using them. We urge you to upgrade your Wasp project to a newer version as soon as possible to keep your app secure and stable.
In the transition period until these apps are migrated, you will need to keep using the legacy installer to install these older versions of Wasp.
I need to switch back to the legacy installer
If you found a bug in the npm-based Wasp, or a workflow that is no longer possible, please report it to us so we can fix it as soon as possible. You can do that through a GitHub issue, or on our Discord server.
If you have already switched to npm installation but need to switch back to the legacy installer:
-
Uninstall the npm version of Wasp:
npm uninstall -g @wasp.sh/wasp-cli -
Make sure that Wasp is uninstalled from your system:
type waspIf Wasp was correctly uninstalled, the
typecommand will output "not found". If Wasp has not been completely uninstalled, it will print the path of thewaspbinary, and you can manually remove it. -
Remove the npm marker file from your system:
rm $HOME/.local/share/wasp-lang/.uses-npm -
Run the installer again with the version you need:
# Set x.y.z to the version you want to install, e.g. 0.20.1
# The installer will refuse to run without a specific version argument
curl -sSL https://get.wasp.sh/installer.sh | sh -s -- -v x.y.z
"Bad CPU type in executable" on Mac with Mx chip (Apple Silicon)
You have two options to run Wasp on your Mac with Mx chip:
-
Recommended: Migrate to the npm-based installation method, which works natively on Apple Silicon.
-
Keep using the legacy installer, but install Rosetta on your Mac to enable running x86 binaries.
To install Rosetta, run the following command in your terminal
softwareupdate --install-rosettaOnce installed, Wasp will run on your system as normal.