I’ve been working on a tutorial using expo and when I run
expo start, I get this message in the command line.
There is a new version of expo-cli available (3.19.2). │
│ You are currently using expo-cli 3.18.6 │
│ Install expo-cli globally using the package manager of your choice; │
│ for example:
npm install -g expo-clito get the latest version
When I run
sudo npm install -g expo-cli these are the errors I get:
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path …/lib/node_modules/expo-cli/bin/expo.js
npm ERR! dest /usr/local/bin/expo
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink ‘…/lib/node_modules/expo-cli/bin/expo.js’ -> ‘/usr/local/bin/expo’
npm ERR! File exists: /usr/local/bin/expo
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hal9000/.npm/_logs/2020-04-26T23_51_06_879Z-debug.log
When I check the version it is the same:
How can I work around this to install the latest CLI?