Prisma1: Unexpected token function

Created on 12 Oct 2017  路  11Comments  路  Source: prisma/prisma1

I got this error when using graphcool init:
C:\Users\...\AppData\Roaming\npm\node_modules\graphcool\node_modules\rwlockfile\lib\rwlockfile.js:9 async function pidActive(pid) {
^^^^^^^^
SyntaxError: Unexpected token function.

Any ideas to deal with it?

bu2-confirmed arecli

Most helpful comment

I removed the one dependency that made node 6 fail, from now on node 6 is supported.

All 11 comments

same here

@parronator solved?

This error is thrown when the node version is older, could you please upgrade that to a more recent one?

@marktani I'm using the v6.11.0 version of nodejs.
Should I do an upgrade?

Could you try to upgrade the version to 8+? :)

Why was the node version check removed?

Good question @kbrandwijk - maybe @timsuchanek can add more context?

This problem should be resolved via #623 though.

@schickling See my reply in #623 for why I do not consider that a good solution. Also, it doesn't take away the issue that apparently, there's something in there that requires node 8+, which is strange, given that it's a compiled Typescript project, that could easily be compiled into something compatible with the still very common node 6.x.

The check hasn't been removed, just tried it.
Some of the dependencies need node >= 8, we should get rid of them

I removed the one dependency that made node 6 fail, from now on node 6 is supported.

@timsuchanek Thank you !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schickling picture schickling  路  3Comments

marktani picture marktani  路  3Comments

nikolasburk picture nikolasburk  路  3Comments

jannone picture jannone  路  3Comments

dohomi picture dohomi  路  3Comments