I'm trying to install react navigator in order to navigate through screens, but when I tried the command
npm install @react-navigation/native
this was the output:
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:UsersUserinstagram
ode_modulescode-point-at
npm ERR! dest C:UsersUserinstagram
ode_modules.code-point-at-QDMSrkUg
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:UsersUserinstagram
ode_modulescode-point-at' -> 'C:UsersUserinstagram
ode_modules.code-point-at-QDMSrkUg'
npm ERR! [Error: EPERM: operation not permitted, rename 'C:UsersUserinstagram
ode_modulescode-point-at' -> 'C:UsersUserinstagram
ode_modules.code-point-at-QDMSrkUg'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\Users\User\instagram\node_modules\code-point-at',
npm ERR! dest: 'C:\Users\User\instagram\node_modules\.code-point-at-QDMSrkUg'
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:UsersUserAppDataLocal
pm-cache\_logs2021-01-10T07_24_50_912Z-debug.log```
question from:
https://stackoverflow.com/questions/65651042/unable-to-instal-and-setup-react-navigation 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…