Install a package
โโโโโโ npm i <package>
โโโโโโ npm install <package>
โโโโโโ npm add <package>
Install a package in devDependencies
โโโโโโ npm i --save-dev <package>
Initial project setup
โโโโโโ npm init -y
Cloning repositories using degit
โโโโโโ npx degit github:user/repo#branch-name <folder-name>
Downloading specific folder from a specified branch
โโโโโโ npx degit github:user/repo/directory/sub-directory#branch-name <folder-name>
ex:
The above approach
โโโโโโโโโโ npx degit https://github.com/jherr/wp5-starter-react.git\#main client
HTTPS approach
โโโโโโโโโโ npx degit github:jherr/wp5-starter-react#main client