V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zhengfan2016
V2EX  ›  问与答

npm run serve 报错 errno1

  •  
  •   zhengfan2016 · 2020-02-14 20:37:15 +08:00 · 1037 次点击
    这是一个创建于 657 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Last login: Fri Feb 14 20:26:21 on ttys000 zhengfans-MBP:~ zhengfan$ cd coolqua zhengfans-MBP:coolqua zhengfan$ npm run serve

    [email protected] serve /Users/zhengfan/coolqua vue-cli-service serve

    ERROR Error: Duplicate plugin/preset detected. If you'd like to use two separate instances of a plugin, they need separate names, e.g.

    plugins: [ ['some-plugin', {}], ['some-plugin', {}, 'some unique name'], ]

    Duplicates detected are: [ { "alias": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js", "options": { "quasar": { "transform": "quasar/dist/babel-transforms/imports.js", "preventFullImport": true } }, "dirname": "/Users/zhengfan/coolqua", "ownPass": false, "file": { "request": "transform-imports", "resolved": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js" } }, { "alias": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js", "options": { "quasar": { "transform": "quasar/dist/babel-transforms/imports.js", "preventFullImport": true } }, "dirname": "/Users/zhengfan/coolqua", "ownPass": false, "file": { "request": "transform-imports", "resolved": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js" } } ] Error: Duplicate plugin/preset detected. If you'd like to use two separate instances of a plugin, they need separate names, e.g.

    plugins: [ ['some-plugin', {}], ['some-plugin', {}, 'some unique name'], ]

    Duplicates detected are: [ { "alias": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js", "options": { "quasar": { "transform": "quasar/dist/babel-transforms/imports.js", "preventFullImport": true } }, "dirname": "/Users/zhengfan/coolqua", "ownPass": false, "file": { "request": "transform-imports", "resolved": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js" } }, { "alias": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js", "options": { "quasar": { "transform": "quasar/dist/babel-transforms/imports.js", "preventFullImport": true } }, "dirname": "/Users/zhengfan/coolqua", "ownPass": false, "file": { "request": "transform-imports", "resolved": "/Users/zhengfan/coolqua/node_modules/babel-plugin-transform-imports/index.js" } } ] at assertNoDuplicates (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-descriptors.js:206:13) at createDescriptors (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-descriptors.js:114:3) at createPluginDescriptors (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-descriptors.js:105:10) at plugins (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-descriptors.js:40:19) at mergeChainOpts (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-chain.js:319:26) at /Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-chain.js:283:7 at Generator.next (<anonymous>) at buildRootChain (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/config-chain.js:90:27) at buildRootChain.next (<anonymous>) at loadPrivatePartialConfig (/Users/zhengfan/coolqua/node_modules/@babel/core/lib/config/partial.js:95:62) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] serve: vue-cli-service serve npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] serve script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</anonymous></anonymous>

    Yourshell
        1
    Yourshell  
       2020-02-15 10:00:50 +08:00 via iPhone
    嗯,知道了。
    关于   ·   帮助文档   ·   API   ·   FAQ   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   3304 人在线   最高记录 5497   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 01:17 · PVG 09:17 · LAX 17:17 · JFK 20:17
    ♥ Do have faith in what you're doing.