“npm init -y” Command

npm init -y command is used to set all the answers of the setup questions to default answers.

npm init -y 

npm init

NPM (Node Package Manager) is the default package manager for Node and is written entirely in JavaScript. Developed by Isaac Z. Schlueter, it was initially released on January 12, 2010. NPM manages all the packages and modules for Node and consists of command line client npm.

NPM gets installed into the system with the installation of Node. The required packages and modules in the Node project are installed using NPM.

Similar Reads

Prerequisites

NPM NodeJS...

What is npm init?

To create a Node project, npm init is used in the folder in which the user wants to create a project. The command line will ask a number of questions like name of Project, license, scripts, description, author, keywords, version, main file etc. After npm creates the project, a package.json file will be created in the project folder as proof that the project has been initialized....

Steps to Setup the Project

Step 1: Create a NodeJS application by using following command...

“npm init -y” Command

npm init -y command is used to set all the answers of the setup questions to default answers....

Contact Us