Modifying $PATH variable

后端 未结 3 742
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-08 14:16

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:29

    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'

提交回复
热议问题