When I typed npm -y like Mosh did, I didn’t get an error but the new file wasn’t created in my project.
If this happens to you like it did to me, here is what you can do to fix the problem.
-
Goto - Local Dick (C:) > Program Files > nodejs > node_modules and delete the npm folder you find in there.
-
Try to reinstall but chose repair instead.