website
website copied to clipboard
Update to lang/en/docs/migrating-from-npm.md
rm -rf node_modules && npm install
is the same as doing npm ci
.
https://docs.npmjs.com/cli/ci
Deploy preview for yarnpkg ready!
Built with commit dd6c177573303533cdc9cf63632d1fa1962f6302
https://deploy-preview-947--yarnpkg.netlify.com
@DanBuild relevant page is: https://deploy-preview-947--yarnpkg.netlify.com/en/docs/migrating-from-npm#toc-cli-commands-comparison
What about leaving it as two lines?
With package-lock.json it’s more equivalent to just “yarn” though
@Haroenv I'm sorry, maybe I don't fully understand what yarn upgrade
do.
To be clear, npm ci
will:
- nuke the node_modules folder - same as
rm -rf node_modules
- install exact versions as described in package-lock.json.
If I understand you correctly, then yarn
is the same as npm ci
and yarn upgrade
is the same as npm install
.
Upgrade would be the same as removing the lock file on npm and running npm install again yes, this situation changed since Yarn was first released