Support pnpm
Rubek Joshi
Currently Strapi does not support pnpm and you run into errors when trying to use it. I think Strapi should support pnpm as it saves up on disk space and development time when creating new Strapi projects. This would close https://github.com/strapi/strapi/issues/15511. There was a little talk about supporting it here: https://github.com/strapi/strapi/issues/9604#issuecomment-792996220.
Evge K.
Yes I would also like to have a ready preset for docker.
Josh
I'm going to give a global reply to people asking for updates – right now the way we build strapi is not compatible with plug n play systems like pnpm. We're actively trying to work on a solution within V4 and it will hopefully be resolved when introduce vite because of the refactoring work that is part of that. I would keep an eye on the github issues for better updates.
Aurélien Georget
open
Andréas Hanss
I've also spotted this issue that can be linked as dependency : https://github.com/strapi/strapi/issues/16280
Marko Bošković
using:
- strapi: 4.9.0
- pnpm: 8.1.0
- node: 18.15.0
I had same issue just added following to
.npmrc
in root of strapi project and it work fine now.node-linker=hoisted
shamefully-hoist=true
dedupe-direct-deps=true
Josh
4.9.0
was released today and has some minor fixes for pnpm
users, although you still should use shamefully-hoist=true
in your .npmrc
.Mirko Pira
Using "node-linker=hoisted" allows you to use PNPM and works very well. This is also very convenient when letting Strapi run inside a Docker container.
Josh
Experimental release if you're interested –
npx create-strapi-app@0.0.0-6e1871738ea447544c2b6323a8c5f3e804b39dd4
This should be included in
v4.7.1
.Derrick Mehaffy
in progress
Currently our engineers are working on cleaning up dependencies to allow for support for pnpm and yarn 3/berry
Maxx Borer
Derrick Mehaffy: Hello! Any news?
Kamil Wilczek
Derrick Mehaffy: any newss?
Peter Biró
Derrick Mehaffy: Hi! Any news on this?
Robin Giel
Derrick Mehaffy: Can we contribute and help with the repo? I think people are waiting for PNPM support. It can be good to speed things up if we can all contribute
Martin Seibert
Derrick Mehaffy: 1.5 years passed. Any update? Is that still in progress or rather stale and "not in progress" now?