Support pnpm
complete
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.
M
Mickaël TRICOT
Thanks for this addition.
This would also make sense now that Strapi Cloud supports PNPM: https://feedback.strapi.io/cloud/p/pnpm-support-for-strapi-cloud
Niklas Winkels
marked this post as
complete
pnpm is officially supported in Strapi 5!
With the release of
Strapi 5
, you can create and manage Strapi projects using pnpm
seamlessly. Simply run:pnpm create strapi
The installation process will guide you through setting up your project, including database configuration and optional Strapi Cloud login.
For more details on installation and CLI options, check out the updated documentation:
Thanks to everyone for your patience and contributions! If you encounter any issues, feel free to report them on GitHub. 🎉
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
marked this post as
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
.Load More
→