I tried to build the app through expo but failed, and I tried to reinstall expo-cli. So, I entered the code below to remove the expo-cli.
npm -g uninstall expo-cli --save
and
(base) Bongui-MacBookPro:expo-firebase-master bong$ npm uninstall expo-cli -gup to date in 0.042s
However, if i type expo, it will run.
So if you ignore it again and try to reinstall expo-cli, The following errors occur:
npm ERR! code EEXISTnpm ERR! syscall symlinknpm ERR! path ../lib/node_modules/expo-cli/bin/expo.jsnpm ERR! dest /Users/bong/npm-global/bin/expo-clinpm ERR! errno -17npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/expo-cli/bin/expo.js' -> '/Users/bong/npm-global/bin/expo-cli'npm ERR! File exists: /Users/bong/npm-global/bin/expo-clinpm ERR! Remove the existing file and try again, or run npmnpm ERR! with --force to overwrite files recklessly.npm ERR! A complete log of this run can be found in:npm ERR! /Users/bong/.npm/_logs/2020-01-28T09_18_38_604Z-debug.log
Thank you, teachers.Please help me solve the problem.Thank you.