[ReactNative_또간집] xCode 빌드 에러 version "default" is not yet installed. You need to run `nvm install default` to install and use it.
react-native-vector-icons 을 깔고 나서 아이콘들을 다운받고 설정하는 과정을 하고
xCode를 클린해주고 다시 빌드해야 했는데..
클린 후 다시 빌드를 하려고 하니..
[Warning] You need to configure your node path in the `".xcode.env" file` environment. You can set it up quickly by running: `echo export NODE_BINARY=$(command -v node) > .xcode.env` in the ios folder. This is needed by React Native to work correctly. We fallback to the DEPRECATED behavior of finding `node`. This will be REMOVED in a future version. You can read more about this here: https://reactnative.dev/docs/environment-setup#optional-configuring-your-environment N/A: version "default" is not yet installed. You need to run `nvm install default` to install and use it.
이라는 오류가 나왔다.
그래서 오류가 알려준대로
nvm install default
입력했으나
흠...
"만약 default가 정의되지 않았다면 최신 LTS 버전을 의미할 수 있습니다. 또는 특정 버전을 지정할 수 있습니다" 라는 지선생의
의견을 따라
nvm install --lts
해주니
오호랏!
그리고 다시 xCode 클린 후 빌드 !!!!
성공!