Closed fabyeah closed 2 years ago
Same problem, I can't work on my project anymore without going back to npm 6 (node 14)
use-> npm install --legacy-peer-deps react-native-ffmpeg
I tried installing using both ---legacy-peer-deps and --force. Both of them did not work and returned an error quoted below.
`npm ERR! code EPERM npm ERR! syscall rename npm ERR! path A:\Frames\Frames-Android\node_modules\applicationinsights npm ERR! dest A:\Frames\Frames-Android\node_modules.applicationinsights-WWcQkKdY npm ERR! errno -4048 mes-Android\node_modules.applicationinsights-WWcQkKdY' npm ERR! [Error: EPERM: operation not permitted, rename 'A:\Frames\Frames-Android\node_modules\applicationinsights' -> 'A:\Frames\Frames-Android\node_modules.applicationinsights-WWcQkKdY'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'rename', npm ERR! path: 'A:\Frames\Frames-Android\node_modules\applicationinsights', npm ERR! dest: 'A:\Frames\Frames-Android\node_modules\.applicationinsights-WWcQkKdY' 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:\Users\aakas\AppData\Local\npm-cache_logs\2021-08-02T19_50_44_712Z-debug.log`
I also tried giving full control to authenticated users for the project folder and also relaxed my antivirus, but I end up getting the same error.
Could anyone please help me to install react-native-ffmpeg until the peer dependencies are updated for latest versions?
Have you tried with sudo command?
Okay, I got it installed. All I did was remove the node_modules folder and the package-lock.json file from my project, then I ran the command
npm i react-native-ffmpeg --legacy-peer-deps
thereby installing react-native-ffmpeg and all other required node_modules for my project
I tried installing using both ---legacy-peer-deps and --force. Both of them did not work and returned an error quoted below.
`npm ERR! code EPERM npm ERR! syscall rename npm ERR! path A:\Frames\Frames-Android\node_modules\applicationinsights npm ERR! dest A:\Frames\Frames-Android\node_modules.applicationinsights-WWcQkKdY npm ERR! errno -4048 mes-Android\node_modules.applicationinsights-WWcQkKdY' npm ERR! [Error: EPERM: operation not permitted, rename 'A:\Frames\Frames-Android\node_modules\applicationinsights' -> 'A:\Frames\Frames-Android\node_modules.applicationinsights-WWcQkKdY'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'rename', npm ERR! path: 'A:\Frames\Frames-Android\node_modules\applicationinsights', npm ERR! dest: 'A:\Frames\Frames-Android\node_modules.applicationinsights-WWcQkKdY' 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:\Users\aakas\AppData\Local\npm-cache_logs\2021-08-02T19_50_44_712Z-debug.log`
I also tried giving full control to authenticated users for the project folder and also relaxed my antivirus, but I end up getting the same error.
Could anyone please help me to install react-native-ffmpeg until the peer dependencies are updated for latest versions?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This project will be retired. Please consider switching to FFmpegKit.
When trying to install, I get this error: