Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created July 31, 2018 11:24
Show Gist options
  • Save ThaddeusJiang/9eb7aee3d03036caef9edc384e674a5c to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/9eb7aee3d03036caef9edc384e674a5c to your computer and use it in GitHub Desktop.
记一次 node 环境变量读取失败
// ok
host=xxx yarn start
// ng
host=xxx && yarn start

当使用 && 分隔时,其实是两条命令。 要想使用 && 分隔,环境变量要export。

export host=xxx && yarn start

自己脑残了,😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment