# GET VERSION | |
npm -v (or --version) | |
# GET HELP | |
npm help | |
npm | |
# CREATE PACKAGE.JSON | |
npm init | |
npm init -y (or --yes) | |
# SET DEFAULTS | |
npm config set init-author-name "YOUR NAME" | |
npm set init-license "MIT" | |
# GET DEFAULTS | |
npm config get init-author-name | |
npm get init-license | |
# REMOVE DEFAULTS | |
npm config delete init-author-name | |
npm delete init-license | |
# INSTALLING LOCAL PACKAGES | |
npm install lodash --save (or npm install --save lodash) | |
npm install moment --save | |
npm install gulp gulp-sass --save-dev | |
# MOVE TO ANOTHER FOLDER | |
npm install | |
npm install --production | |
# REMOVING MODULES | |
npm uninstall gulp-sass --save-dev | |
npm remove gulp --save-dev | |
#INSTALL CERTAIN VERSIONS | |
npm install lodash@4.17.3 --save | |
# UPDATE | |
npm update lodash --save | |
# INSTALL GLOBAL MODULE | |
npm install -g nodemon | |
npm install -g live-server | |
# RUN NODEMON | |
nodemon | |
# FIND ROOT FOLDER | |
npm root -g | |
# REMOVE GLOBAL PACKAGES | |
npm remove -g nodemon | |
# LISTING PACKAGES | |
npm list | |
npm list --depth 0 | |
npm list --depth 1 | |
# INSTALL LIVE-SERVER LOCALLY | |
npm install live-server --save-dev | |
# NPM SCRIPT | |
"scripts": { | |
"start": "node index.js", | |
"dev": "live-server" | |
}, |
This comment has been minimized.
This comment has been minimized.
@erwindw thanks, fixed Also guys, --save is not neede for NPM 5+ |
This comment has been minimized.
This comment has been minimized.
thanks u r the best !!! |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
I am new to NPM and your crash course for it gave me pretty much what i wanna know about NPM. |
This comment has been minimized.
This comment has been minimized.
Awesome. That's a good guide! |
This comment has been minimized.
This comment has been minimized.
This is awesome. I am new to npm and I wanted to know how to create the gitignore file and how to put the modules in it. |
This comment has been minimized.
This comment has been minimized.
Lovely, Cleared about NPM concept. Bunch of Thanks |
This comment has been minimized.
This comment has been minimized.
You are a real concept artist teacher... please accept my kind boast in you but you very good teacher Brad. This days if I am learning something new in web dev I will youtube topic traversy media. You deserve the credit of hard bro! |
This comment has been minimized.
This comment has been minimized.
Great! Thank you. |
This comment has been minimized.
This comment has been minimized.
I really appreciate your work Brad. Thanks for this cheatsheet |
This comment has been minimized.
This comment has been minimized.
thank you Brad. You are awesome man! |
This comment has been minimized.
This comment has been minimized.
Great guide. Though I think that # MOVE TO ANOTHER FOLDER on line 29 should be # INSTALL TO ANOTHER FOLDER, because the commands "npm install" or "npm install --production" do not move the user or the files to another directory. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
the best tutorial ever, |
This comment has been minimized.
This comment has been minimized.
You rock Brad! Keep up the good work. |
This comment has been minimized.
This comment has been minimized.
Just Perfect! |
This comment has been minimized.
This comment has been minimized.
Great list, thanks. I've found shortcodes: |
This comment has been minimized.
This comment has been minimized.
Thanks Brad for the info, God bless you bro... |
This comment has been minimized.
This comment has been minimized.
thank you ! |
This comment has been minimized.
This comment has been minimized.
Thank you very much! |
This comment has been minimized.
This comment has been minimized.
Thank You Brad your tutorials helps alot |
This comment has been minimized.
This comment has been minimized.
Thanks man! You just pushed me forward in that journey |
This comment has been minimized.
This comment has been minimized.
thank you so much , very helpful |
This comment has been minimized.
This comment has been minimized.
Thanks Brad, |
This comment has been minimized.
This comment has been minimized.
Old but gold |
This comment has been minimized.
Good tutorial, appreciated. Very minor detail. #INSTALL NODMON LOCALLY should be # INSTALL LIVE-SERVER LOCALLY