Skip to Content
Full-Stack React Projects - Second Edition
book

Full-Stack React Projects - Second Edition

by Shama Hoque
April 2020
Intermediate to advanced
716 pages
18h 55m
English
Packt Publishing
Content preview from Full-Stack React Projects - Second Edition

Initializing package.json and installing Node.js modules

We will begin by using Yarn to install all the required modules. It is a best practice to add a package.json file in every project folder to maintain, document, and share the Node.js modules being used in the MERN application. The package.json file will contain meta-information about the application, as well as list the module dependencies.

Perform the steps outlined in the following points to generate a package.json file, modify it, and use it to install the modules:

  • yarn init: From the command line, enter your project folder and run yarn init. You will be asked a series of questions to gather meta-information about your project, such as name, license, and author. Then, a package.json ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full-Stack React Projects

Full-Stack React Projects

Shama Hoque
React Native - The Practical Guide

React Native - The Practical Guide

Academind by Maximilian Schwarzmüller GmbH

Publisher Resources

ISBN: 9781839215414Supplemental Content