Skip to content
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

yarn install --prod misleading description #1045

Open
barsolet opened this issue Feb 12, 2020 · 0 comments
Open

yarn install --prod misleading description #1045

barsolet opened this issue Feb 12, 2020 · 0 comments

Comments

@barsolet
Copy link

Misleading description "Yarn will not install any package listed in devDependencies" while it actually removes any devDependencies installed previously.

https://classic.yarnpkg.com/en/docs/cli/install/#toc-yarn-install-production-true-false

  1. Run yarn
  2. Observe node_modules - devDependencies has been installed
  3. Run yarn --prod
  4. devDependencies has been removed

When we use yarn workspaces, we need to have devDependencies from root package.json, but not from the workspaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant