Please I would love to know the meaning of the flag -y. I noticed it is used in setting up an npm project, but what exactly does it mean?
npm init -y
Please I would love to know the meaning of the flag -y. I noticed it is used in setting up an npm project, but what exactly does it mean?
npm init -y
The -y flag when passed to NPM commands tells the generator to use the defaults instead of asking questions.
npm init -y
will simply generate an empty npm project without going through an interactive process.
The -y stands for yes. More about npm-init here