Skip to content

Commit

Permalink
Adds a note that yarn install doesn't generate a node_modules folder
Browse files Browse the repository at this point in the history
Fix #6198
  • Loading branch information
arcanis committed Apr 10, 2024
1 parent c64644a commit 04a03c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/docusaurus/docs/getting-started/basics/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ sidebar_position: 4
If you're coming from npm, the main changes are:

- Running `yarn` is enough to run an install! It's an alias to `yarn install`.

:::note
By default `yarn install` uses the [Plug'n'Play](/features/pnp) install strategy, which doesn't generate a `node_modules` folder. This can be changed using the `nodeLinker` configuration setting.
:::

- Adding or updating a dependency to a single package is done with `yarn add`.
- Upgrading a dependency across the whole project is done with `yarn up`.
- Your scripts are aliased. Calling `yarn build` is the same as `yarn run build`!
Expand Down

0 comments on commit 04a03c1

Please sign in to comment.