Npm -y doesn't create a package.jason file

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.

  1. Goto - Local Dick (C:) > Program Files > nodejs > node_modules and delete the npm folder you find in there.

  2. Try to reinstall but chose repair instead.

1 Like