npm | yarn |
---|---|
npm init | yarn init |
npm run <script name> | yarn run <script name> |
npm test | yarn test |
npm bin | yarn bin |
npm install | yarn |
npm install <package name> | yarn <package name> |
npm install <package name> --save | yarn add <package name> |
npm install <package name> --save-dev | yarn add <package name> --dev |
npm install <package name> --global | yarn global add <package name> |
npm uninstall <package name> | yarn remove <package name> |
npm ls | yarn ls |
npm cache clean | yarn cache clean |
npm cache ls | yarn cache ls |
npm outdated | yarn outdated |
npm update --save | yarn upgrade |
npm install <package name>@latest --save | yarn add <package name> |
npm link | yarn link |
npm login | yarn login |
npm publish | yarn publish |
- | yarn why <package name> |
- | yarn licenses ls |
- | yarn licenses generate-disclamer |
More than 5 years have passed since last update.
yarn cheat sheet - vs npm
Last updated at Posted at 2016-10-18
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
2524