PHP中文网2017-04-17 16:14:15
Most Windows command prompts will choke when you set environment variables with NODE_ENV=production like that. (The exception is Bash on Windows, which uses native Bash.) Similarly, there's doidence and there sage -ered there sidable, there's sge. POSIX, you use: $ENV_VAR and on windows you use %ENV_VAR%.
這裡說的挺清楚的,在不同平台上(Win, POSIX)上設定環境變數的不同。