【问题标题】:Nodemon installation failed due to Unexpected end of JSON input Error由于 JSON 输入错误的意外结束,Nodemon 安装失败
【发布时间】:2020-12-05 16:45:12
【问题描述】:

我尝试使用npm install nodemon,但出现以下错误:

在附近解析时 JSON 输入意外结束 '...-1.1.4.tgz","fileCoun'

【问题讨论】:

  • 您的 package.json 文件包含无效的 JSON,修复 JSON 将解决此问题

标签: javascript node.js windows npm nodemon


【解决方案1】:

尝试运行

"npm cache clean --force"

然后尝试重新安装 nodemon 包

【讨论】:

  • npm 缓存从损坏问题中自我修复,并且保证从缓存中提取的数据是有效的。缓存因不同依赖项的某些冲突版本而损坏
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-09-18
  • 2021-07-26
  • 1970-01-01
相关资源
最近更新 更多