expo: Node.js version 11.1.0 is no longer supported
When I build an expo-ejected project with XCode it fails with the following message.
ERROR: Node.js version 11.1.0 is no longer supported.
expo-cli supports following Node.js versions:
* >=8.9.0 <9.0.0 (Maintenance LTS)
* >=10.13.0 <11.0.0 (Active LTS)
* >=12.0.0 (Current Release)
Command /bin/sh failed with exit code 1
I indeed used Nodejs v11.* so I installed the latest v12.6.0 and uninstalled all previous version, but I still get this message. Why is this happened?
Nodejs has all installed via Nodebrew and my environment and what I did is the following.
- MacOS: 10.14.6
- Xcode: 10.3
- Expo: 3.0.4
- Yarn: 1.15.2
$ node --version
v12.6.0
$ nodebrew ls
v12.6.0
current: v12.6.0
$ expo init xcode-node-issue
$ cd xcode-node-issue
$ yarn eject
$ cd ios
$ pod install
$ open xcode-issue-repro.xcworkspace
Xcode launches, set Team in General -> Signing and ▶️ button to build but results build failure
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (2 by maintainers)
I had same problem. Successfully builded by the following.
I don’t have nvm, so this fixed it for me.
sudo npm install -g nsudo n latestStack Overflow
Having the same issue, I don’t even have node 10.8.0 in my system but I get the error:
Node.js version 10.8.0 is no longer supported.
Do you use nvm? That might be the source of the issue. If so, go ahead and run
nvm versionand lmk the outputAdd
which nodecommand to the shell script at Xcode: Build Phases – Bundle Expo Assets. And check the console output to verify whether the node is what you expected.