Things about Upgrade npm Package

2019-02-23  本文已影响0人  forks1990

Assume familiar with semver versions.

  1. Upgrade to latest compatible versions without update package.json::
yarn upgrade

yarn.lock file updated to lock version numbers.

  1. Upgrade to latest versions and updates package.json::

Method 1, using npm-check-updates

ncu -u

Method2: using yarn

yarn upgrade --latest

To upgrade packages to compatible version ranges, no need to update package.json file.

上一篇 下一篇

猜你喜欢

热点阅读