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

npm run serve 报错 errno1

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

    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   ·   实用小工具   ·   1113 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 19:02 · PVG 03:02 · LAX 11:02 · JFK 14:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.