pin*_*ngo 5 bash xcode node.js nvm react-native
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
Run Code Online (Sandbox Code Playgroud)
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.
我可能曾经安装过节点brew,但相信我已经安装了它,因为brew node -v返回Error: Unknown command: node Error: Kernel.exit.
想知道是否有人可以指出我正确的方向!