https://github.com/antfu/ni npm i in a yarn project, again? F**k!

  1. npm i -g @antfu/ni

ni-install

  1. ni
  2. # npm install
  3. # yarn install
  4. # pnpm instal
  1. ni axios
  2. # npm i axios
  3. # yarn add axios
  4. # pnpm add axios
  5. ni @types/node -D
  6. # npm i @types/node -D
  7. # yarn add @types/node -D
  8. # pnpm add -D @types/node

ni - frozen

  1. ni --frozen
  2. # npm ci
  3. # yarn install --frozen-lockfile
  4. # pnpm install --frozen-lockfile

nr - run

  1. nr dev --port=3000
  2. # npm run dev -- --port=3000
  3. # yarn run dev --port=3000
  4. # pnpm run dev -- --port=3000

nun - uninstall

  1. nun axios
  2. # npm uninstall axios
  3. # yarn remove axios
  4. # pnpm remove axios
  5. nun @types/node -D
  6. # npm uninstall @types/node -D
  7. # yarn remove @types/node -D
  8. # pnpm remove -D @types/node
  9. nun -g eslint
  10. # npm uninstall -g eslint
  11. # yarn global remove eslint
  12. # pnpm remove -g eslint