npm与Yarn 命令比较

yarn

npm与Yarn 命令比较

  • npm install yarn install
  • (N/A) yarn install --flat
  • (N/A) yarn install --har
  • (N/A) yarn install --no-lockfile
  • (N/A) yarn install --pure-lockfile
  • npm install (N/A)
  • npm install --save yarn add
  • npm install --save-dev yarn add [--dev/-D]
  • (N/A) yarn add [--peer/-P]
  • npm install --save-optional yarn add [--optional/-O]
  • npm install --save-exact yarn add [--exact/-E]
  • (N/A) yarn add [--tilde/-T]
  • npm install --global yarn global add
  • npm rebuild yarn install --force
  • npm uninstall (N/A)
  • npm uninstall --save yarn remove
  • npm uninstall --save-dev yarn remove
  • npm uninstall --save-optional yarn remove
  • npm cache clean yarn cache clean
  • rm -rf node_modules && npm install yarn upgrade

你可能感兴趣的:(npm与Yarn 命令比较)