Introduction
Introduction
What is npm?
Modularity and Application Design
Packages and Modules
Package Managers and Dependency Hell
The Node Module Loader and npm2
Hello, npm!
Dependency Resolution
Duplication and Deduping
Non-determinism
Up and Running
Installing Node.js and npm
Exercise 1: Changing versions of npm
Using Packages
The Registry
Installing Packages
Using npm Packages with Node.js
Exercise 2: Installing and Using Packages in Node.js
Exercise 3: Debugging Missing Packages
Using a package.json
Exercise 4: A Static Site, with npm
Semantic Versioning (Semver)
Version Ranges
Exercise 5: Specifying Version Ranges in package.json
Major.Minor.Patch
Exercise 6: Release Manager Role Playing
Publishing a Package
Publishing Workflow
Exercise 7: Our First Package!
Private Packages, Teams, and Orgs
Run Scripts
What are run scripts?
start and test
Exercise 8: Writing a start script
Custom Run Scripts
Exercise 9: Writing a custom build script
Lifecycle Events
Exercise 10: Writing a prepublish script
Conclusion
Summary
Next Steps
Published with GitBook
Custom Run Scripts
Custom Run Scripts
results matching "
"
No results matching "
"