Last login: Fri Feb 14 20:26:21 on ttys000 zhengfans-MBP:~ zhengfan$ cd coolqua zhengfans-MBP:coolqua zhengfan$ npm run serve
coolqua@0.1.0 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! coolqua@0.1.0 serve: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the coolqua@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</anonymous></anonymous>
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.