create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

create nuxt app with ava testing issue

Open airBogdan opened this issue 5 years ago • 0 comments

Version

v2.11.0

Reproduction link

https://jsfiddle.net/

Steps to reproduce

npx create-nuxt-app and then run npm (run) test

What is expected ?

test should work

What is actually happening?

test doesnt work

Additional comments?

First of all, the command to create new nuxt app instales nuxt ^2.0.0 and I dont know why but npm update didnt work. Anyway, tried npm (run) test with nuxt 2.0.0 and with 2.11.0 (i got it to this version because im trying to get ava to work with a big project I am working on, with this nuxt version, and I encounter errors - other ones than the ones I get here and the main idea i get the to work). Below is the log file.

1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'test:e2e' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'pretest:e2e', 'test:e2e', 'posttest:e2e' ]
5 info lifecycle [email protected]~pretest:e2e: [email protected]
6 info lifecycle [email protected]~test:e2e: [email protected]
7 verbose lifecycle [email protected]~test:e2e: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~test:e2e: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/bgdmhl/Projects/nuxt/ava/node_modules/.bin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/Users/bgdmhl/Projects/nuxt/ava/node_modules/.bin
9 verbose lifecycle [email protected]~test:e2e: CWD: /Users/bgdmhl/Projects/nuxt/ava
10 silly lifecycle [email protected]~test:e2e: Args: [ '-c', 'cross-env TEST=e2e ava ./test/e2e/**/*' ]
11 info lifecycle [email protected]~test:e2e: Failed to exec test:e2e script
12 verbose stack Error: [email protected] test:e2e: `cross-env TEST=e2e ava ./test/e2e/**/*`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at ChildProcess.emit (events.js:210:5)
12 verbose stack     at maybeClose (internal/child_process.js:1021:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
13 verbose pkgid [email protected]
14 verbose cwd /Users/bgdmhl/Projects/nuxt/ava
15 verbose Darwin 19.4.0
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "test:e2e"
17 verbose node v12.14.0
18 verbose npm  v6.14.4
19 error code ELIFECYCLE
20 error syscall spawn
21 error file sh
22 error errno ENOENT
23 error [email protected] test:e2e: `cross-env TEST=e2e ava ./test/e2e/**/*`
23 error spawn ENOENT
24 error Failed at the [email protected] test:e2e script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
This bug report is available on Nuxt community (#c10602)

airBogdan avatar May 01 '20 20:05 airBogdan