Wasp and npm: The Holy Grail
Author: cpreciosoCreated Jul 6, 2026Updated Oct 1, 2026
From https://github.com/wasp-lang/wasp/issues/4328#issuecomment-4810870030:
There is a solution that solves everything but requires too many changes:
- Distribute Wasp over NPM and install it locally for each project.
- Remove Wasp version from the wasp file.
- Specify wasp version in the package.json.
- This package brings in the Wasp CLI, wasp-config, the libs, everything.
- Refactor our repo to use NPM workspaces in our example apps to get proper dev workflow and correctly resolve unreleased versions.
- Users have to run wasp with npx wasp
- Users can't run wasp outside their projects unless installed globally (e.g., for news or wasp version)
- Have users run npm install after every npx wasp clean.
Related:
- #4328
- #4357
- #3170
Source: wasp-lang/wasp