Eu criei um arquivo package.json, como vi em algumas instruções, e daí o log de erros mudou para
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'init'
1 verbose cli ]
2 info using npm@6.14.13
3 info using node@v14.17.0
4 silly package data {
4 silly package data name: 'bytebank',
4 silly package data version: '1.0.0',
4 silly package data description: 'Projeto da bytebank para seus clientes',
4 silly package data main: 'index.js',
4 silly package data scripts: { test: 'echo "Error: no test specified" && exit 1' },
4 silly package data author: 'Rugal',
4 silly package data license: 'ISC'
4 silly package data }
5 info init written successfully
6 verbose stack Error: EPERM: operation not permitted, write
7 verbose cwd C:\Users\Gabriellima\Documents\aluracursos\javascript
8 verbose Windows_NT 10.0.19042
9 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "init"
10 verbose node v14.17.0
11 verbose npm v6.14.13
12 error code EPERM
13 error syscall write
14 error errno -4048
15 error Error: EPERM: operation not permitted, write
15 error [Error: EPERM: operation not permitted, write] {
15 error errno: -4048,
15 error code: 'EPERM',
15 error syscall: 'write'
15 error }
16 error The operation was rejected by your operating system.
16 error It's possible that the file was already in use (by a text editor or antivirus),
16 error or that you lack permissions to access it.
16 error
16 error If you believe this might be a permissions issue, please double-check the
16 error permissions of the file and its containing directories, or try running
16 error the command again as root/Administrator.
17 verbose exit [ -4048, true ]
Eu já tentei mexer no antivirus, nas permissões em segurança , executei o node, o vs code e o powershell como administrador, e ainda assim não funcionou....