npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

experiencing this error "npm ERR! A complete log of this run can be found in:" when installing firebase

PS C:\Users\Seun Cute\Desktop\socialape-functions> npm install --save firebase
npm ERR! Unexpected end of JSON input while parsing near ‘…lYA\r\n=pUHB\r\n-----’

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Seun Cute\AppData\Roaming\npm-cache_logs\2019-10-15T06_57_46_898Z-debug.log


This can happen when there has been a bad download and the cache is corrupt. Try running this, and then try the install again.

npm cache clean --force