0.16.2-rc.0 • Published 4 years ago
@nkduy/ni v0.16.2-rc.0
ni
npm i in a yarn project, again? F**k!
ni - use the right package manager
npm · yarn · pnpm
ni - install
ni
# npm install
# yarn install
# pnpm installni axios
# npm i axios
# yarn add axios
# pnpm add axiosni @types/node -D
# npm i @types/node -D
# yarn add @types/node -D
# pnpm add -D @types/nodeni --frozen
# npm ci
# yarn install --frozen-lockfile
# pnpm install --frozen-lockfileni -g iroiro
# npm i -g iroiro
# yarn global add iroiro
# pnpm add -g iroiro
# this uses default agent, regardless your current working directorynr - run
nr dev --port=3000
# npm run dev -- --port=3000
# yarn run dev --port=3000
# pnpm run dev -- --port=3000nr
# interactively select the script to run
# supports https://www.npmjs.com/package/npm-scripts-info conventionnr -
# rerun the last commandnx - execute
nx jest
# npx jest
# yarn dlx jest
# pnpm dlx jestnu - upgrade
nu
# npm upgrade
# yarn upgrade
# pnpm updatenu -i
# (not available for npm)
# yarn upgrade-interactive
# pnpm update -inun - uninstall
nun axios
# npm uninstall axios
# yarn remove axios
# pnpm remove axiosnun @types/node -D
# npm uninstall @types/node -D
# yarn remove @types/node -D
# pnpm remove -D @types/nodenun -g eslint
# npm uninstall -g eslint
# yarn global remove eslint
# pnpm remove -g eslintnci - clean install
nci
# npm ci
# yarn install --frozen-lockfile
# pnpm install --frozen-lockfileif the corresponding node manager is not present, this command will install it globally along the way.
na - agent alias
na
# npm
# yarn
# pnpmna run foo
# npm run foo
# yarn run foo
# pnpm run fooChange Directory
ni -C packages/foo vite
nr -C playground devConfig
; ~/.nirc
; fallback when no lock found
defaultAgent=npm # default "prompt"
; for global installs
globalAgent=npm# ~/.bashrc
# custom configuration file path
export NI_CONFIG_FILE="$HOME/.config/ni/nirc"0.16.2-rc.0
4 years ago