优先级纱线:如果项目具有yarn.lock,请将npm install更改为yarn

  • l7_130748
    了解作者
  • 57.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-14 23:02
    上传日期
优先纱线 如果项目具有yarn.lock,请将npm install更改为yarn。 命令行界面 $ npm install --global prioritize-yarn $ alias npm='prioritize-yarn' // Using yarn, when there is a `yarn.lock`. $ npm install yarn install v0.18.1 [1/4] :magnifying_glass_tilted_left: Resolving packages... [2/4] :delivery_truck: Fetching packages... [3/4] :link: Linking dependencies... [4/4] :page_with_curl:
prioritize-yarn-master.zip
  • prioritize-yarn-master
  • .github
  • ISSUE_TEMPLATE.md
    474B
  • PULL_REQUEST_TEMPLATE.md
    1011B
  • .eslintrc
    27B
  • .gitattributes
    43B
  • yarn.lock
    122.3KB
  • .prettierignore
    40B
  • license
    1.1KB
  • .travis.yml
    67B
  • .prettierrc
    43B
  • .all-contributorsrc
    675B
  • .editorconfig
    147B
  • CODE_OF_CONDUCT.md
    3.1KB
  • .gitignore
    13B
  • index.js
    1.9KB
  • readme.md
    2KB
  • cli.js
    566B
  • .eslintignore
    30B
  • package.json
    1.1KB
内容介绍
# prioritize-yarn [![Build Status](https://travis-ci.org/akameco/prioritize-yarn.svg?branch=master)](https://travis-ci.org/akameco/prioritize-yarn) [![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors) > If the project has yarn.lock, change npm install to yarn. ## CLI ``` $ npm install --global prioritize-yarn ``` ``` $ alias npm='prioritize-yarn' // Using yarn, when there is a `yarn.lock`. $ npm install yarn install v0.18.1 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... [4/4] 📃 Building fresh packages... ✨ Done in 2.25s. ``` ## Recommend Add this to ~/.bashrc or ~/.zshrc: ``` alias npm=prioritize-yarn ``` ## Contributors Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore --> <table><tr><td align="center"><a href="http://akameco.github.io" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/4002137?v=4" width="100px;" alt="akameco"/><br /><sub><b>akameco</b></sub></a><br /><a href="https://github.com/akameco/prioritize-yarn/commits?author=akameco" title="Code" rel='nofollow' onclick='return false;'>💻</a> <a href="https://github.com/akameco/prioritize-yarn/commits?author=akameco" title="Documentation" rel='nofollow' onclick='return false;'>📖</a> <a href="#infra-akameco" title="Infrastructure (Hosting, Build-Tools, etc)" rel='nofollow' onclick='return false;'>🚇</a></td><td align="center"><a href="http://www.miguelmadero.com" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/47388?v=4" width="100px;" alt="Miguel Madero"/><br /><sub><b>Miguel Madero</b></sub></a><br /><a href="https://github.com/akameco/prioritize-yarn/commits?author=MiguelMadero" title="Code" rel='nofollow' onclick='return false;'>💻</a></td></tr></table> <!-- ALL-CONTRIBUTORS-LIST:END --> This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! ## License MIT © [akameco](http://akameco.github.io)
评论
    相关推荐