developerasun / myCodeBox-web

Open source code box for web developers.
Apache License 2.0
5 stars 0 forks source link

[BUG] Node.js/environment : && is not a valid statement separator #250

Closed developerasun closed 2 years ago

developerasun commented 2 years ago

issue : && operator in VS code terminal not working while setting env var for node js

screenshot : attach a screenshot showing the bug

not-valid

label : add propel lables for the bug

developerasun commented 2 years ago

Solution: try below Powershell command

setting environment variable command varies under below dev setting.

cmd-powershell

# && operator is not used in Window Powershell language. 
$($env:NODE_ENV="development") -and (node app)

# Or, split the command
$($env:NODE_ENV="development")
$node app

reference