1

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)

krlzlx
  • 5,752
  • 14
  • 47
  • 55
KD.
  • 43
  • 7

2 Answers2

1

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

SirOlaf
  • 66
  • 2
0

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