Modifying $PATH variable

后端 未结 3 2105
攒了一身酷
攒了一身酷 2021-02-08 13:44

Trying to install node.js.

Did brew install node

It seems to have worked.

However, received this message upon its completion

3条回答
  •  情话喂你
    2021-02-08 14:35

    In PATH ORDER IS IMPORTANT. So anything before desired npm version will still cause problems.

    #adding in first place of the path, before anything else
    export PATH=/usr/local/bin:otherPathEntries:$PATH
    

    assuming that version of npm You want is in /usr/local/bin, to check all use 'which -a npm'

提交回复
热议问题