Vue Js安装

时间:2020-04-16 01:37:20

标签: vue.js npm npm-install

尝试通过

安装vue js
npm install -g @vue/cli.

我的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

我试图调查回购交易。我不明白该问题的解决方案。

2 个答案:

答案 0 :(得分:5)

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

答案 1 :(得分:0)

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

相关问题