NPM Crash Course – Download



This is a beginner-friendly crash course and tutorial on NPM or the Node Package Manager. Some of what you will learn…..

Install and remove modules
Update modules
All about package.json
Set init defaults
Local & global modules
Dependencies & dev dependencies
Listing modules
Semantic Versioning
NPM Scripts

COMMANDS:

# 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"
},
view raw
npmcrashcourse.txt
hosted with ❤ by GitHub

BECOME A PATRON: Show support & get perks!
http://www.patreon.com/traversymedia

ONE TIME DONATIONS:
http://www.paypal.me/traversymedia

COURSES & MORE INFO:
http://www.traversymedia.com

FOLLOW TRAVERSY MEDIA:
http://www.facebook.com/traversymedia

http://www.instagram.com/traversymedia

NEED WEB HOSTING?
https://inmotion-hosting.evyy.net/c/396530/260033/4222

NEW DISCORD CHAT SERVER:
https://discord.gg/traversymedia

Source

Do you love us?, Please donate to us ,thank you. BTC 38WPVc3xMYmoMp1GcnpDXd1fEzbfgujsCB Etherum 0x6c11844FD079b2490CDd44039e1C2f0940d098dc

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.