Here is a small collection of tricks!
nvm: easily install and switch between multiple node versions
Node version manager allows you to install node per-user, and to easily switch and use different versions in different shell sessions.
Install and use specific version of Node:
nvm install 15.4.0
nvm use 15.4.0For the latest version of node:
nvm install node
nvm use nodenpx: run an npm package binary in an easy way
Instead of installing a package globally, you can use npx:
npx create-react-app my-app --template typescriptlocaltunnel: expose localhost to the world
npx localtunnel --port 3000live-server: run a web development server with reload capability
npx live-serverconcurrently: run multiple commands concurrently
npx concurrently "<command1>" "<command2>"npx concurrently "npx live-server" "npx localtunnel --port 8080"nodemon: run command on file changes
npx nodemon --exec "python -v" ./app.pynpx nodemon --ext js,ts,tsx --watch src/ --exec "npm run"