I'm using Expo with React Native but when trying to create a new project I get the error:
ERROR: Node.js version 11.13.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)
$ node --version
v11.13.0
$ npm install npm@latest -g
...lib/node_modules/npm/bin/npx-cli.js
+ npm@6.10.3`
added 6 packages from 4 contributors, removed 11 packages and updated 36 packages in 9.92s
$ node --version
v11.13.0
$ expo init myApp
...throws same error above again.
EDIT:
$ which node
/Users/hasen/.nvm/versions/node/v11.13.0/bin/node
$ /usr/local/bin/node --version
v10.16.2
npm install -g n
and thenn latest
$ npm install npm@latest -g
to update node.Missing write access to /Users/hasen/.nvm/versions/node/v11.13.0/lib/node_modules/n
not sure why that would be.sudo npm install -g n
node -v
is still showing v11.13.0 and I still get the same error with expo. Is it because I'm using nvm? Look at the edit in my question, the node that is being used is in the nvm folder.