--- title: npm npx cmd tags: Nodejs --- # npm npx cmd ## npm - 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 ## npx - 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 --- - Reference: https://dev.to/vuelancer/replacement-for-git-clone-degit-3lf1
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up