Affiliate link
Node.js - Package.json
npm - Package Manager
npm is a package manager for installing packages and managing dependencies.
Yarn is another package manager that uses the same package database as npm.
Package.json
npm stores project dependencies and metadata in package.json file.
The npm packages for the project are stored in the directory node_modules.
Package.json - Example
{
"name": "learncodenow",
"version": "0.1.0",
"private": true,
}Package.json - npm init
Run npm init in command prompt to create a package.json for a new project.
Affiliate link
Affiliate link



