现在用@vue/cli安装的已经是4了吗?我装完版本号是4.4.6

来源:3-4 安装vue-cli3

泽北

2020-07-06 15:33

现在用@vue/cli安装的已经是4了吗?我装完版本号是4.4.6

写回答 关注

3回答

  • dollaryliu
    2020-07-07 16:37:55
    已采纳

    目前是的,但是方法是通用的。


  • Will911
    2020-07-22 12:13:21

    你们有没有遇到vuecli4.4.6运行报错:

     INFO  Starting development server...
     ERROR  Error: Package exports for 'D:\project\VUE\test\node_modules\colorette'
    do not define a valid '.' target
    Error: Package exports for 'D:\project\VUE\test\node_modules\colorette' do not d
    efine a valid '.' target
        at resolveExportsTarget (internal/modules/cjs/loader.js:455:13)
        at resolveExports (internal/modules/cjs/loader.js:388:16)
        at Function.Module._findPath (internal/modules/cjs/loader.js:487:20)
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:782:27)
        at Function.Module._load (internal/modules/cjs/loader.js:688:27)
        at Module.require (internal/modules/cjs/loader.js:850:19)
        at require (internal/modules/cjs/helpers.js:74:18)
        at Object.<anonymous> (D:\project\VUE\test\node_modules\autoprefixer\lib\aut
    oprefixer.js:5:17)
        at Module._compile (internal/modules/cjs/loader.js:958:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:994:10)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! test@0.1.0 serve: `vue-cli-service serve`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the test@0.1.0 serve script.
    npm ERR! This is probably not a problem with npm. There is likely additional log
    ging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\ASUS\AppData\Roaming\npm-cache\_logs\2020-07-22T04_12_35_7
    32Z-debug.log

  • 泽北
    2020-07-07 16:40:51

    好的,谢谢

vue-cli全集

手把手带你学习从项目创建到项目升级,完美契合企业需求

44773 学习 · 230 问题

查看课程

相似问题