【问题标题】:Why can I not start the Vue UI after installing the Vue CLI?为什么安装 Vue CLI 后无法启动 Vue UI?
【发布时间】:2019-01-22 09:53:15
【问题描述】:

使用以下内容:

node 8.11.2
npm 6.3.0

然后我尝试安装 Vue CLI (@vue/cli@3.0.0):

npm i -g @vue/cli

但是当我运行以下命令时:

vue ui

我收到以下错误:

Error: Cannot find module 'core-js/modules/es7.object.entries'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Apps\caches\npm\node_modules\@vue\cli\node_modules\apollo-upload-server\lib\mi
ddleware.js:14:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

【问题讨论】:

    标签: npm vue.js vue-cli


    【解决方案1】:

    原来我必须明确安装 core-js 包。

    npm i -g core-js
    

    不知道为什么它没有作为依赖安装。

    该问题已报告HERE,并已在v3.0.1 中修复。

    【讨论】:

    • 通过这个答案修复它
    • 我仍然没有运气,事实上我什至没有收到错误,什么都没有。
    猜你喜欢
    • 2020-05-12
    • 2019-07-14
    • 2021-03-05
    • 1970-01-01
    • 2020-04-20
    • 2018-07-13
    • 2019-08-02
    • 2021-02-28
    • 2020-10-11
    相关资源
    最近更新 更多