I am a newbie of nodejs, I am trying to a create node js project using npm init command but it stops at version. Can someone please help?
Below is error:
Press ^C at any time to quit.
name: (node_init)
version: (1.0.0)
I am a newbie of nodejs, I am trying to a create node js project using npm init command but it stops at version. Can someone please help?
Below is error:
Press ^C at any time to quit.
name: (node_init)
version: (1.0.0)
It's an error in the newest version. You can use npm init -f as a workaround until it is fixed.
You could also make use of
npm init --yes
or
npm init -y
and npm initializes a project with the default package.json values, or
npm init -f
using --force
Reference: https://docs.npmjs.com/cli/init