Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.zshrc inconsistent type for assignment?

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?

like image 902
slideshowp2 Avatar asked Jun 12 '26 04:06

slideshowp2


1 Answers

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.

like image 126
curiousity Avatar answered Jun 15 '26 00:06

curiousity