npm init not working and getting stuck on version

I am having the same problem. However to by-pass and create the package.json file you can use the -y flag and this creates a file with defaults that you can edit later

$npm init -y

Leave a Comment