提问者:小点点

如何卸载浏览器同步


我尝试卸载浏览器同步,它根本不会工作。

我已经尝试过多次,并且已经研究过以下问题:

  • 安装nvm后无法卸载全局npm包
  • 如何卸载节点js中的npm模块?

我试着添加-g,它只是说它是“最新的”...

>npm uninstall browser-sync
npm ERR! code EJSONPARSE
npm ERR! file C:\Users\justi\OneDrive\Documents\GitHub\triangle-calc\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 316 while parsing near '...les.css --watch",
npm ERR! JSON.parse   },
npm ERR! JSON.parse   "keywords": [],...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\justi\AppData\Roaming\npm-cache\_logs\2020-12-28T01_44_57_830Z-debug.log

>npm uninstall browser-sync -g
up to date in 0.063s

我以前卸载其他任何东西都没有遇到过这个问题。我希望有人能很快发现我的愚蠢错误。提前谢谢。


共1个答案

匿名用户

我的包中有一个错误。json(正如输出所说的那样)。这是一个额外的逗号(显然在JS中有效,但在JSON中无效)。保留此选项,以防有人试图卸载软件包。