javascriptnode.jsnpmnpm-init

How to create node project using npm init? Getting stuck at version


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)


Solution

  • It's an error in the newest version. You can use npm init -f as a workaround until it is fixed.