node.jsnpmnpm-init

npm init not working and getting stuck on version


So I am using version 8.1.0 of Node.Js and when I call npm init to set up a project it goes to version and stays there. I have tried pressing enter or quitting with ^C but nothing happens. I have waited for over an hour and it hasn't progressed at all. Any idea what I should do?

Here is basically what I am seeing: npm init error

Edit: I tried reinstalling and still didn't work; so I uninstalled version 8.1.0 and installed the user recommended one (6.11.0) and it works fine. I am pretty sure it's a bug in version 8.1.0, but it's the one I need.

Edit 2: Oh, I am running this on Windows 10.


Solution

  • Alright, it seems to be a bug in 8.1.0 and will be fixed in Tuesday's release.

    https://github.com/nodejs/node/pull/13560#issuecomment-307565172