Set environment variables on Mac OS X Lion

后端 未结 16 1468
余生分开走
余生分开走 2020-11-22 11:01

When someone says \"edit your .plist file\" or \"your .profile\" or \".bash_profile\" etc, this just confuses me. I have no idea where these files are, how to create them if

16条回答
  •  时光说笑
    2020-11-22 11:20

    Step1: open ~/.bash_profile

    Now a text editor opens:

    Step2: variable name should be in capitals. in this example variable is NODE_ENV

    Step3: export NODE_ENV=development

    Save it and close.

    Restart your system.

    Done.

    To check env variable: open terminal and type

    echo $NODE_ENV 
    

提交回复
热议问题