How to properly set PHP environment variable to run commands in Git Bash

后端 未结 4 1263
礼貌的吻别
礼貌的吻别 2020-12-11 03:35

There are a few similar questions as this throughout the site, but none of them are giving me the answer I\'m looking for.

What I\'m trying to do is install Composer

4条回答
  •  长情又很酷
    2020-12-11 04:16

    If you're in git bash, just type PATH="path to php goes here"

    It might be useful to copy the existing path and modify it, so you don't lose other useful paths. Type in export to see the path.

    The new path is only valid for the session.

提交回复
热议问题