← 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
node --test can't import project files: Cannot use import statement outside a module
#7SyntaxError: Cannot use import statement outside a module (or ERR_REQUIRE_ESM) when running node --test against lib/*.js files that use import/export.
MCP stdio server breaks: client shows JSON parse errors
#11MCP client reports invalid JSON / 'Unexpected token' and the server disconnects right after starting.