I deleted nvm from my mac (I deleted the ~/.nvm-folder), and I installed node through the installer from their website.
I have a React Native project I want to build in XCode, but I get the following error:
Node found at: /Users/username/.nvm/versions/node/v18.19.1/bin/node
/Users/username/Library/Developer/Xcode/DerivedData/app-gnvlyyajukhnelhalqtfeuwftjrn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/hermes-engine.build/Script-46EB2E0002AB40.sh: line 9: /Users/username/.nvm/versions/node/v18.19.1/bin/node: No such file or directory
I think somewhere in XCode/my project, the old path of node (nvm) is still persisted. What I did so far:
- added
export NODE_BINARY=/usr/local/bin/nodeto .zshrc -> didn't work - deleted node_modules, deleted pods, ... -> didn't work
- deleted the derivedData folder of XCode -> didn't work
- set a symlink to
/usr/local/bin/node-> this symlink already exists, didn't work
Where to set this node path?
.../ios/.xcode.env.local. stackoverflow.com/questions/71096289/…