Skip to content

Explain why yarn is more preferred than npm #8615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion frontend/encore/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ Then, install Encore into your project with Yarn:
.. note::

If you want to use `npm`_ instead of `yarn`_, replace ``yarn add xxx --dev`` by
``npm install xxx --save-dev``.
``npm install xxx --save-dev``.

Encore includes a file that locks dependency versions when `yarn` is used (the `yarn.lock` file).
It's highly encouraged to use `yarn` to avoid any issues and to maintain consistency across machines.

If you already in trouble remove `node_modules` and use `yarn` to install dependencies.

.. tip::

Expand Down