Update All Node Packages to Latest
npm install -g npm-check-updates
ncu
Run ncu -u to upgrade package.json
ncu -u
Run npm install to install new versions.
npm install
Check global packages:
ncu -g
Daily Notes of a Programmer
npm install -g npm-check-updates
ncu
Run ncu -u to upgrade package.json
ncu -u
Run npm install to install new versions.
npm install
Check global packages:
ncu -g
npx create-react-app my-app
Creating a TypeScript app
npx create-react-app my-app --template typescript
References
https://create-react-app.dev/docs/getting-started/
yarn upgrade yarn upgrade left-pad yarn upgrade left-pad@^1.0.0 yarn upgrade left-pad grunt yarn upgrade @angular
yarn upgrade --pattern gulp yarn upgrade left-pad --pattern "gulp|grunt" yarn upgrade --latest --pattern "gulp-(match|newer)"
yarn upgrade --latest yarn upgrade left-pad --latest yarn upgrade left-pad grunt --latest --tilde
npm | yarn |
npm install |
yarn install |
npm install [package] --save |
yarn add [package] |
npm install [package] --save-dev |
yarn add [package] --dev |
npm uninstall [package] |
yarn remove [package] |
npm install [package] --global |
yarn global add [package] |
Verbose flag
npm install -g bower --verbose
Clean cache
npm cache clean
References
https://docs.npmjs.com/