desde una termina desde instalar nodejs
C:\Users\jviejo>node -v
v16.15.0
C:\Users\jviejo>npm -v
8.5.5
C:\Users\jviejo>npm i yarn -g
changed 1 package, and audited 2 packages in 2s
found 0 vulnerabilities
C:\Users\jviejo>mkdir borrame
Ya existe el subdirectorio o el archivo borrame.
C:\Users\jviejo>mkdir borrame2
C:\Users\jviejo>cd borrame2
C:\Users\jviejo\borrame2>yarn init -y
yarn init v1.22.19
warning The yes flag has been set. This will automatically answer yes to all questions, which may have security implications.
warning ..\package.json: No license field
success Saved package.json
Done in 0.06s.
C:\Users\jviejo\borrame2>dir
El volumen de la unidad C es Sistema
El número de serie del volumen es: E80A-F11F
Directorio de C:\Users\jviejo\borrame2
28/06/2022 21:00 <DIR> .
28/06/2022 21:00 <DIR> ..
28/06/2022 21:00 95 package.json
1 archivos 95 bytes
2 dirs 39.067.574.272 bytes libres
intenta reproducir esta secuencia y envíamela