Closed teheavy closed 6 years ago
This happens when I'm running npm test
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.require.extensions.(anonymous function) [as .js] (/aqua/node_modules/lab/lib/coverage.js:37:28)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/aqua/test/lab/client-before.js:2:15)
at Module._compile (module.js:413:34)
at Object.require.extensions.(anonymous function) [as .js] (/aqua/node_modules/lab/lib/coverage.js:37:28)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at /aqua/node_modules/lab/lib/cli.js:121:21
at Array.forEach (native)
at Object.internals.traverse.paths.forEach.testFiles [as traverse] (/aqua/node_modules/lab/lib/cli.js:117:15)
at Object.exports.run (/aqua/node_modules/lab/lib/cli.js:62:31)
at Object.<anonymous> (/aqua/node_modules/lab/bin/lab:50:23)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:142:18)
at node.js:939:3
npm ERR! Test failed. See above for more details.
I'm not sure what the problem is yet, but you can't reach the site because the server hasn't started
[13:15:51] [nodemon] app crashed - waiting for file changes before starting...
And based on the second comment you left, it sounds like some dependencies (like babel
) aren't taking affect.
What's the operating system? What version of node? Have you followed the README?
I see, so I basically followed the README and I tried the same installation process on both OSX El Capitan and Ubuntu 14.04. My aqua version is the newest 7.0.2.
Before, I thought it was because I was running nodeJS with Apache server, so I stopped the Apache server, but problem persists.
What version of node?
I'm using node v5.9.1 and npm 3.8.5.
That's one problem, you should use node >= 8.x
https://github.com/jedireza/aqua/blob/ea085be912494561149e1899d68cb468e5e0d144/package.json#L17
I see, problem solved! I didn't notice this problem! Thanks!
Hi there,
I have been trying to setup aqua on my system, but it seems I cannot access http://127.0.0.1:8000/, mongod was running and I have tested on both Ubuntu and MacOS, all had the same problem.
Here's a log I got when I'm start running aqua