Não estou conseguindo executar os comandos "npm install" e "npm start". Já verifiquei as variáveis do ambiente e estão todas corretas, porém ao executar estes comandos eles dão os erros mencionados mais abaixo, no curso anterior eu estava conseguindo executar os comando normalment, porém agora ao iniciar esete novo curso estou com estes problemas. Podem me ajudar?
Segue abaixo a resposta pelo CMD após a execução dos comandos:
O comando de "npm install" aparece o seguinte erro: npm ERR! code EPERM npm ERR! syscall open npm ERR! path C:\Users\RAFAEL\package-lock.json npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\RAFAEL\package-lock.json' npm ERR! [Error: EPERM: operation not permitted, open 'C:\Users\RAFAEL\package-lock.json'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'open', npm ERR! path: 'C:\Users\RAFAEL\package-lock.json' 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: C:\Users\RAFAEL\AppData\Local\npm-cache_logs\2024-03-21T18_40_12_715Z-debug-0.log
O comando "npm start" aparece o seguinte erro: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\RAFAEL\package.json npm ERR! errno -4058 npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'C:\Users\RAFAEL\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: C:\Users\RAFAEL\AppData\Local\npm-cache_logs\2024-03-21T18_40_57_749Z-debug-0.log