New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Unexpected token #2392
Comments
I reckon you're using an outdated version of Node.js. AVA 3 requires 10.18 at a minimum. If you have no particular requirements I'd recommend you install Node.js 12.15. (I'm closing this issue for housekeeping purposes, but let's keep the conversation going.) |
Thanks for the instant answer. I am not installing Shouldn't |
Your Node.js version is no longer supported, not even by Node.js. npm manages dependencies, not Node.js itself. |
Fair enough. I see that ava's package.json has the engines field with the requirement you mentioned. Somewhat I overlooked that when installed. Could you use Thanks for considering this suggestion. PS: FWIW, I run an Ubuntu 18.04 which is less than 2 years old and will be around till 2023.... |
Our engine requirements are advisory only. Sadly, not everybody upgrades at an even pace. Making them mandatory isn't practical for us (but you can configure your npm to enforce it, I believe).
I don't maintain Node.js and its dependencies, so I can't help you with that 😄 |
I am just trying to get started with AVA and admittedly I have very little experience with javascript in the browser and zero experience with
node.js
I'm following the instructions on https://github.com/avajs/ava/blob/master/readme.md namely install and set up AVA, with
npm init ava
, then Installava
withnpm install --save-dev ava
then created the very sametest.js
file as per documentation, attempted to run the test withnpm test
.Fails as follows:
I am pretty sure I must be missing something stupid, but can not find what it is. This is my (basically empty) project:
Besides the fact that I probably do not know what I am doing (which I could learn with a stackoverflow question), a more informative error message would help, hence I am submitting this as a issue here ;-)
The text was updated successfully, but these errors were encountered: