Initializing package.json

We will need a package.json file to store meta information about the project, list the module dependencies with version numbers, and to define run scripts. To initialize a package.json file in the project folder, go to the project folder from the command line and run npm init, then follow the instructions to add the necessary details. With package.json created, we can proceed with setup and development, and update the file as more modules are required throughout code implementation.

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.