🐶

npm と Yarn, pnpm コマンドの対応表

2024/04/18に公開

ただのメモ。 ChatGPT に出してもらいました。優しい世界

npm Yarn pnpm
npm install yarn install pnpm install
npm ci yarn install --frozen-lockfile pnpm install --frozen-lockfile
npm install -D <package> yarn add -D <package> pnpm add -D <package>
npm update yarn upgrade pnpm update
npm uninstall <package> yarn remove <package> pnpm remove <package>
npm outdated yarn outdated pnpm outdated
npm list yarn list pnpm list
npm init yarn init pnpm init
npm run yarn run pnpm run
npm start yarn start pnpm start
npm test yarn test pnpm test
npm publish yarn publish pnpm publish
npm login yarn login pnpm login
npm logout yarn logout pnpm logout
npm adduser yarn login pnpm adduser

Discussion