That's a weird error. Maybe you should try having --save-dev or --save flag on npm install. Not sure about what the default npm install behavior is but normall --save or --save-dev will add it to package.json dependency object and it will be installed locally.
That's a weird error. Maybe you should try having
--save-devor--saveflag on npm install. Not sure about what the default npm install behavior is but normall--saveor--save-devwill add it to package.json dependency object and it will be installed locally.tried that too but that didn't solved the problem...! I had to delete package-lock.json and then execute the command again...