Is it possible to configure Wasp to use a different package manager?

Wasp uses npm when creating a new project (I just made my first one following the Quick Start page) and I was wondering if it is possible to use yarn instead?
1 Reply
kapa.ai
kapa.ai4d ago
Hi @Webby Vanderhack. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, it appears that Wasp currently only supports npm as its package manager, and there's no built-in option to switch to yarn or other package managers like pnpm or bun. This is evident from a Discord support thread where a community member specifically asked "why can't choose package manager? I usually use pnpm and recently started using bun" Discord support thread. The Wasp team is working on a code reorganization (referenced in issue #734) that might address package management flexibility in the future. This reorganization aims to improve several aspects of dependency management, including: 1. More customizable build pipeline 2. Support for custom npm registries 3. Better handling of dev dependencies 4. More freedom with dependency versions 5. Package-lock.json support However, as of now, there's no direct way to configure Wasp to use yarn instead of npm. The project structure currently relies on npm for dependency management, and the documentation specifically mentions using npm commands like npm install to add new dependencies. If package manager flexibility is important for your workflow, you might want to follow the progress on the code reorganization issue Rethinking Wasp code organization, as this might introduce changes to how dependencies are managed in Wasp projects. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Webby Vanderhack, 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 find this page helpful?