I usually do not have any issues with nvm
, but a React Native / Xcode project is failing to build because it's trying to use Node v4.4.3.
My nvm ls
looks like this:
v5.11.0
v5.11.1
v6.1.0
v6.9.5
v6.11.5
-> v8.7.0
v10.1.0
system
When I type nvm use system
and node -v
it prints 4.4.3
, so I suppose that's where Xcode is getting 4.4.3
from.
But when I type nvm alias system 8.7.0
(attempting to alias the system to 8.7.0), it prints system -> 8.7.0 (-> v8.7.0)
and node -v
still returns 4.4.3
.
I also tried nvm install 8.7.0 --reinstall-packages-from=node
, but that didn't really seem to do anything to help the cause.
I probably had node installed with brew
at one point, but believe I've installed it because brew node -v
returns Error: Unknown command: node Error: Kernel.exit
.
Wondering if anyone can point me in the correct direction!