node.js - 使用 npm 安装 Firebase 时出错
问题描述
我正在尝试使用 npm 命令安装 firebase。我尝试了不同的命令,但仍然遇到同样的错误。
npm install --save firebase npm ERR! Unexpected end of JSON input while parsing near '...0ae6e1d9734f431ca8c39' npm ERR! A complete log of this run can be found in: npm ERR! /home/ven/.npm/_logs/2020-07-20T14_28_15_516Z-debug.log
解决方案
尝试清理缓存:
npm cache clean --force
推荐阅读
- android - Kotlin EMV android.nfc.Tag.setConnectedTechnology 错误
- c++ - 链接:致命错误 LNK1181:无法打开输入文件“opencv_world341d.lib”
- laravel - 该模板不在远程服务器的元素应用程序内呈现,但在本地环境中工作
- monodevelop - Windows 10(非 Mac)上的 Monodevelop - 尝试使用 winbuild.bat 构建会导致错误(均与 Mac 相关)AppKit、currentEvent 等
- python-3.x - 模块错误:光栅没有打开属性
- django - Pickle/Unpickle 更复杂的对象
- python - 在 python 中返回整个文档的 Xpath
- python-3.x - 为什么 while 循环不会停止并且 .write() 不起作用?蟒蛇3
- bash - Circle CI 的 docker-compose 部署配置
- python - 如何将具有两个变量的字符串数组放入文本文件中?