Practical 4
Practical 4
1. Install NPM
● This creates a package.json file that keeps track of your project and its dependencies.
● Use npm init -y for a default package.json.
3. Install Packages
Install dependencies needed for your project using commands:
npm install <package-name>
● Example: npm install express
● This creates a node_modules folder and updates dependencies in package.json.
4. Manage Packages
b) Uninstall a Package
5. Use Scripts