What is npm?
npm, short for Node Package Manager, is an online repository for publishing open source projects built on Node.js. It also provides a command-line utility for interacting with an online repository that helps in package installation, version management, and dependency management. For more information on npm, you can visit https://www.npmjs.com/.
To help maintain project dependencies, scripts, and versioning, each Node.js project provides a package.json file. When you initialize your PCF project, you will get a package.json file as part of the project template. This file will contain a script section that will help you execute certain commands, such as build and test. It will also contain a list of dependencies that can be easily restored from the npm package registry to your local machine.
During the course of this book, we will be using the following npm commands:
- npm install: This command installs all dependencies from the npm package registry to the local...