.zshrc inconsistent type for assignment?
Asked Answered
M

2

6

I install MongoDB by using homebrew

and set the path within .zshrc:

export path=/usr/local/Cellar/mongodb/3.4.6/bin:$PATH

But when I open the iTerm2, the stdout give me this:

Last login: Sat Jul 22 19:57:33 on ttys001
/Users/elsa/.zshrc:export:95: path: inconsistent type for assignment

what's this? how to solve it?

Madonna answered 22/7, 2017 at 13:9 Comment(0)
S
6

Lowercase path should be uppercase.

export PATH=/usr/local/Cellar/mongodb/3.4.6/bin:$PATH

Slinky answered 22/7, 2017 at 13:17 Comment(0)
O
9

I got this when changing a value for JAVA17_HOME. Doing

unset JAVA17_HOME

and then setting it again worked.

Not the original problem, which was answered, but may help people who land here while searching.

Oestrogen answered 17/8, 2022 at 1:8 Comment(2)
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From ReviewImpearl
This actually answers the question of how to resolve the error in any context outside the original question.Munich
S
6

Lowercase path should be uppercase.

export PATH=/usr/local/Cellar/mongodb/3.4.6/bin:$PATH

Slinky answered 22/7, 2017 at 13:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.