Please run expo diagnostics
and paste the log that’s printed out along with your question or issue!
Input:
expo diagnostics
output:
‘expo’ is not recognized as an internal or external command,
operable program or batch file.
input: npm install -g expo -cli
output:
npm ERR! code EEXIST
npm ERR! path C:\Users\edmon\AppData\Roaming\npm\node_modules\expo\bin\cli.js
npm ERR! dest C:\Users\edmon\AppData\Roaming\npm\expo.ps1
npm ERR! EEXIST: file already exists, cmd shim ‘C:\Users\edmon\AppData\Roaming\npm\node_modules\expo\bin\cli.js’ → ‘C:\Users\edmon\AppData\Roaming\npm\expo.ps1’
npm ERR! File exists: C:\Users\edmon\AppData\Roaming\npm\expo.ps1
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! C:\Users\edmon\AppData\Roaming\npm-cache_logs\2020-03-17T00_51_27_413Z-debug.log
This is another pc installation failed not sure if the two PCs have the same issue. before i had the code working perfectly for both. now none of them works.
i really appreciate any advice to solve this issue. thank you so much.