Advanced npm

Advanced npm

42mIntermediate2019-01-25

Authors

Emmanuel Henri

Emmanuel Henri

Executive with 20+ years of experience in programming and design

Course details

npm is a key part of every developer's toolbox. It's the package manager for JavaScript and JavaScript frameworks such as Node.js, enabling developers to easily share and re-use code. This course helps you build on your npm knowledge, teaching advanced concepts and skills, including how to publish your own packages so they can be used by the entire JavaScript community. Instructor Emmanuel Henri also covers working with private packages, executing audits, and troubleshooting common issues, including cache problems.

Learning objectives
Publishing packages
Updating a package
Setting up tokens and authentication for private packages
Working with scoped packages
Running npm audits
Troubleshooting npm

Skills covered

NPMNode.jsAdvancedFront-End Web DevelopmentWeb DevelopmentOpen Source

Concepts

Introduction

  • Publish packages, run audits, and troubleshoot errors with npm
  • What you should know

Going Over the Base Project

  • Base project template
  • Overview of basics

Publishing a Package

  • Requirements for publishing
  • Basics of semantic versioning
  • Introduction to dist-tags
  • Publish your package
  • Update your package

Private Packages

  • Set up tokens with npm
  • Set up two-factor authentication
  • Publish a scoped package
  • Work with scoped packages

Advanced npm Audits

  • Overview of npm audits
  • Run detailed npm audits

Troubleshooting npm

  • Update your npm Node.js versions
  • npm cache usage
  • Overview of common errors and solutions

Conclusion

  • Next steps
40,000 Toman