Cordiva + nuxtjs插件无效

时间:2019-02-25 14:20:14

标签: cordova nuxt.js

我想在项目https://github.com/allanroger/nuxt-cordova中使用nuxt + cordova

我复制了存储库,安装了yarn并运行了yarn install命令。一切都已建立,没有错误。

当我调用“ npm run dev”时,我看到以下错误

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nuxtcordova@0.0.1 lint: eslint --ext .js,.vue ./*.js store pages components layouts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nuxtcordova@0.0.1 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/anonim/.npm/_logs/2019-02-25T13_57_08_170Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nuxtcordova@0.0.1 dev: npm run lint && nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nuxtcordova@0.0.1 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/anonim/.npm/_logs/2019-02-25T13_57_08_322Z-debug.log

在debug.log中,我看到了

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'run', 'dev' ]
2 info using npm@6.8.0
3 info using node@v8.11.4
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle nuxtcordova@0.0.1~predev: nuxtcordova@0.0.1
6 info lifecycle nuxtcordova@0.0.1~dev: nuxtcordova@0.0.1
7 verbose lifecycle nuxtcordova@0.0.1~dev: unsafe-perm in lifecycle true
8 verbose lifecycle nuxtcordova@0.0.1~dev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/media/anonim/01D4C6F2C6169120/PROJECTS/PLANSTER/PRODUCTIONS/MOBILE/nuxt-cordova/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle nuxtcordova@0.0.1~dev: CWD: /media/anonim/01D4C6F2C6169120/PROJECTS/PLANSTER/PRODUCTIONS/MOBILE/nuxt-cordova
10 silly lifecycle nuxtcordova@0.0.1~dev: Args: [ '-c', 'npm run lint && nuxt' ]
11 silly lifecycle nuxtcordova@0.0.1~dev: Returned: code: 1 signal: null
12 info lifecycle nuxtcordova@0.0.1~dev: Failed to exec dev script
13 verbose stack Error: nuxtcordova@0.0.1 dev: npm run lint && nuxt
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid nuxtcordova@0.0.1
15 verbose cwd /media/anonim/01D4C6F2C6169120/PROJECTS/PLANSTER/PRODUCTIONS/MOBILE/nuxt-cordova
16 verbose Linux 4.20.11-042011-generic
17 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "run" "dev"
18 verbose node v8.11.4
19 verbose npm v6.8.0
20 error code ELIFECYCLE
21 error errno 1
22 error nuxtcordova@0.0.1 dev: npm run lint && nuxt
22 error Exit status 1
23 error Failed at the nuxtcordova@0.0.1 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

如何解决我的问题? 我用kubuntu

0 个答案:

没有答案