W
Wasp•2w ago
Julius_Java#00

PNPM instead of NPM

Is there a way to instruct wasp to install dependencies with pnpm instead of npm
5 Replies
kapa.ai
kapa.ai•2w ago
Hi @Julius_Java#00. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Currently, Wasp doesn't support using alternative package managers like pnpm instead of npm. Based on the knowledge sources, Wasp is specifically designed to work with npm for installing dependencies. There's an open issue where a community member asked about choosing package managers, mentioning pnpm and bun as alternatives they'd prefer to use, but this isn't currently supported in Wasp Discord support thread. The Wasp team is working on restructuring how dependencies are managed, which might eventually lead to more flexibility with package managers. There are several related issues about improving npm dependency management: 1. Allowing custom npm registries Github Issue #869 2. Figuring out package-lock.json support Github Issue #559 3. Rethinking code organization with exposed package.json Github Issue #734 However, none of these issues specifically mention supporting alternative package managers like pnpm yet. For now, you'll need to continue using npm with Wasp projects. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Julius_Java#00, 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?
Carlos
Carlos•2w ago
Hi @Julius_Java#00, as with many things, it is on our radar, you can follow this GitHub issue for updates: https://github.com/wasp-lang/wasp/issues/2262 But yeah, for right now npm is the way to go. What are the specific pnpm features you're interested in?
Julius_Java#00
Julius_Java#00OP•2w ago
@Carlos I noticed it's way way faster when installing dependencies on my machine than npm. Don't know why but it has been that way for a while
Carlos
Carlos•2w ago
yeah, that happens, pnpm does some black magic for that 😅 as some general recommendations for quicker installing, ensure you're using the latest npm version (npm instal --global npm), and if you're using windows make sure you're installing your dependencies inside the WSL volume and not in the regular windows one
Julius_Java#00
Julius_Java#00OP•2w ago
Yeah I'm using Ubuntu on my machine and I installed the latest npm version and it was better than before @Carlos

Did you find this page helpful?