Skip to content

Commit

Permalink
pnpm shamefully hoist call out
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Nov 11, 2024
1 parent 2aad7fb commit 1905ffd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/docs/introduction/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ $ npm i -D @greenwood/cli@latest

# yarn
$ yarn add @greenwood/cli@latest --save-dev

# pnpm
$ pnpm add -D @greenwood/cli@latest
```

> For pnpm, it is currently required to create a _.npmrc_ file at the root of your project with the [**shamefully-hoist**](https://pnpm.io/blog/2020/10/17/node-modules-configuration-options-with-pnpm#the-worst-case---hoisting-to-the-root) flag set to `true`.
## Commands

The CLI supports three commands, that can be easily mapped to npm scripts in your _package.json_. You'll also want to make sure you've set the `type` field to **module**:
Expand Down

0 comments on commit 1905ffd

Please sign in to comment.