That operator is a pretty recent addition as logical operator within JavaScript. It could be you need to update Node.js as at least version 15 is needed to use this operator. See also:
https://stackoverflow.com/questions/72522748/syntaxerror-unexpected-token