【问题标题】:Vue Js InstallationVue Js 安装
【发布时间】:2020-07-29 03:59:41
【问题描述】:

尝试通过安装vue js

npm install -g @vue/cli.

我的npm版本是6.14.4,node版本是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

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

【问题讨论】:

    标签: vue.js npm npm-install


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

        清理 npm 缓存:npm cache clean --force

        如果您使用的是 mac 或 Linux,请尝试使用 sudo npm install -g @vue/cli 对于 Windows npm install -g @vue/cli

        【讨论】:

          【解决方案4】:

          基本上,在运行npm install -g @vue/cli 之后,在我们的终端中使用npm cache clean --force 命令从缓存文件夹中删除所有数据。然后运行 ​​vue create myapp 来创建你的 vue CLI 应用

          【讨论】:

            猜你喜欢
            • 2019-01-26
            • 2021-07-12
            • 2018-04-23
            • 2020-07-15
            • 2021-05-28
            • 2020-11-29
            • 2020-05-02
            • 1970-01-01
            • 2020-04-20
            相关资源
            最近更新 更多