I am getting this error when I try to use expo commands.
npm ERR! code EPERM npm ERR! syscall rename npm ERR! path
C:UsersSriAppDataRoaming
pm
ode_modulesexpo-cli npm ERR! dest
C:UsersSriAppDataRoaming
pm
ode_modules.expo-cli-JgrrLjT2 npm
ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted,
rename 'C:UsersSriAppDataRoaming
pm
ode_modulesexpo-cli' ->
'C:UsersSriAppDataRoaming
pm
ode_modules.expo-cli-JgrrLjT2' npm
ERR! [Error: EPERM: operation not permitted, rename
'C:UsersSriAppDataRoaming
pm
ode_modulesexpo-cli' ->
'C:UsersSriAppDataRoaming
pm
ode_modules.expo-cli-JgrrLjT2'] {
npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall:
'rename', npm ERR! path:
'C:UsersSriAppDataRoaming
pm
ode_modulesexpo-cli', npm
ERR! dest:
'C:UsersSriAppDataRoaming
pm
ode_modules.expo-cli-JgrrLjT2'
npm ERR! } npm ERR! npm ERR! The operation was rejected by your
operating system. npm ERR! It's possible that the file was already in
use (by a text editor or antivirus), npm ERR! or that you lack
permissions to access it. npm ERR! npm ERR! If you believe this might
be a permissions issue, please double-check the npm ERR! permissions
of the file and its containing directories, or try running npm ERR!
the command again as root/Administrator.
npm ERR! A complete log of this run can be found in: npm ERR!
C:UsersSriAppDataLocal
pm-cache_logs2020-12-31T06_02_09_505Z-debug.log
C:UsersSriAppDataRoaming
pm
ode_modulesexpo-cli
I followed the above path and found that expo-cli folder was there but when I try to init or uninstall expo it says 'expo' is not recognized as internal or external command.
question from:
https://stackoverflow.com/questions/65517335/expo-is-not-recognized-as-an-internal-or-external-command-operable-program-or 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…