npm ERR! git dep preparation failed when trying to install package.json

Try this

Step 1:

$ npm cache clean --force

Step 2:

Delete node_modules by $ rm -rf node_modules also delete package-lock.json

Step 3:

Update the npm to the latest stable version

npm install -g [email protected]

Step 3:

npm install

To start again,

$ npm start

Leave a Comment