Vue Js 安装

des*_*esh 1 npm vue.js npm-install

尝试通过安装 vue js

npm install -g @vue/cli.
Run Code Online (Sandbox Code Playgroud)

我的 npm 版本是 6.14.4,节点版本是 12.16.2

这是我得到的错误

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! Unexpected end of JSON input while parsing near '...nEaUD\r\n=F4TR\r\n---'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Sudesh\AppData\Roaming\npm-cache\_logs\2020-04-16T01_32_53_989Z-debug.log
Run Code Online (Sandbox Code Playgroud)

我尝试查看回购。我不明白这个问题的解决方案是什么。

bei*_*ogi 5

尝试npm cache clean --force然后运行npm install -g @vue/cli. 我认为这必须解决您的问题。