Docusaurus can't be initialized with pnpm #5182
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs more information
There is not enough information to take action on the issue.
🐛 Bug Report
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Attempting to initialize a new docusaurus project fails with
Excess arguments
when usingpnpx
:npx
works, as well as installing and using docusaurus withpnpm
afterwards:pnpx
belongs to pnpm, a relatively new package manager which avoids dependency trouble and high disk space usage by using hard links from a global store and not flatteningnode_modules
. While I was able to work around this so easily it's almost not worth an issue (as seen above), it would be nice if docusaurus would be smooth to initialize forpnpm
users as well.Have you read the Contributing Guidelines on issues?
Yes
Steps to reproduce
pnpm
:npm i -g pnpm
pnpx -y @docusaurus/init@latest init my-website classic
Expected behavior
Actual behavior
Excess arguments
:(Your environment
Reproducible demo
N/A
The text was updated successfully, but these errors were encountered: