← All fixes
PowerShell 5.1: '&&' is not a valid statement separator
#13Error
The token '&&' is not a valid statement separator in this version.
Fix
Windows PowerShell 5.1 doesn't support && or ||. Use: cmdA; if ($?) { cmdB }. Or run the command in PowerShell 7 (pwsh) or Git Bash, where && works.Did it work?
No reports yet0 worked0 didn't
Tried it yourself?
Related fixes
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
#56SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
nodejavascriptVerifiedNo reports yet
SyntaxError: Cannot use import statement outside a module
#53SyntaxError: Cannot use import statement outside a module
nodeVerifiedNo reports yet
SyntaxError: await is only valid in async functions and the top level bodies of modules
#28SyntaxError: await is only valid in async functions and the top level bodies of modules
nodeVerifiedNo reports yet