Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
npm - Mastering the Basics
Rating: 4.6 out of 5(1,874 ratings)
27,271 students

npm - Mastering the Basics

For Beginners
Last updated 8/2017
English
English [Auto],

What you'll learn

  • Get a strong understanding on npm commands and be able to make use of npm for Angular, Node and similar technologies

Course content

1 section16 lectures40m total length
  • Introduction2:27

    Discover how npm acts as the JavaScript package manager, enabling you to publish reusable modules to the npm registry and manage package versions for easy updates.

  • Getting npm0:59

    Download the latest stable release of node to get npm, verify installed versions with node -v and npm -v, and keep npm up to date with npm update.

  • npm Help2:26

    Explore how to use npm help to access command documentation, view typical npm commands, and apply the dash h option and help search to learn about install and other commands.

  • package.json2:37

    Create a package.json with npm init to manage dependencies, scripts, and common fields like name, version, description, main, author, and license, leveraging default prompts.

  • package.json defaults3:26

    Set default author and license in package.json with npm config set, then verify with npm init and inspect or remove defaults using npm config get and delete.

  • Installing Local Packages3:51

    Install local npm packages in your project folder with npm install, creating node_modules and updating package.json, and use --save and --save-dev to manage production and development dependencies like moment.

  • Uninstalling Local Packages1:25

    Learn how to uninstall local packages with npm by removing dependencies and devDependencies using npm uninstall with --save and --save-dev, and understand how this updates package.json.

  • Installing Global Packages1:22

    Learn how to install npm packages globally using the -g flag, placing binaries in the path, and distinguish global versus local installations.

  • Uninstalling Global Packages0:56

    Learn how to uninstall a global npm package with npm uninstall -g moment, and note common command aliases such as npm install, npm remove, and npm rm.

  • Listing Packages2:28

    List locally and globally installed npm packages with npm list, examine the tree of dependencies, and use --depth to limit output.

  • npm Versioning4:40

    Learn semantic versioning in npm, using major, minor, and patch numbers to signal changes, and install specific versions (saving to package.json) with npm install @version --save.

  • Installing from package.json4:10

    Explore how npm install reads dependencies from package.json and installs them into node_modules, and compare caret, tilde, exact version, and star specifiers for major, minor, and patch updates.

  • Updating Packages2:38

    Learn how to update npm packages to access new features, update specific packages like low dash and moment, and handle dev dependencies, global updates, and npm itself with administrator privileges.

  • npm Prune1:27

    Remove extraneous packages with npm prune, keeping only required dependencies; after prune, npm list --depth=0 shows only underscore.

  • Shortcuts2:54

    Master npm shortcuts for fast commands: initialize with npm init -y to create a default package.json, install locally, save as a dependency or dev dependency, use global and view npm version.

  • npm Scripts2:43

    Discover how npm scripts in package.json automate commands, using npm start to run the app with node, and leverage a start script for flexible entry points and development tasks.

Requirements

  • How to use a text editor such as Visual Studio Code, Sublime Text or Notepad++
  • How to use Chrome browser

Description

Learn from scratch, the basic npm commands. 

Content and Overview

Specifically for beginners, this course contains all the fundamentals you need to know, in one place, simplified and straight forward! 

This course will teach you about what npm is and some of the basic npm commands that are regularly used for other web technologies like node and angular.

Who this course is for:

  • This course is for students who want to master the basic npm commands