Я пытаюсь выучить Angular и слежу за онлайн-уроком.Тем не менее, я не могу пройти мимо создания нового проекта с помощью ng new.Я использую узел v10.16.0 и npm 6.9.0 в Windows 7. Я получаю следующую ошибку в журнале:
15177 verbose cwd C:\Personal documents\Angular\myProject
15178 verbose Windows_NT 6.1.7601
15179 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--quiet"
15180 verbose node v10.16.0
15181 verbose npm v6.9.0
15182 error path C:\Personal documents\Angular\myProject\node_modules\.staging\typescript-f4316380\lib\lib.dom.d.ts
15183 error code EPERM
15184 error errno -4048
15185 error syscall unlink
15186 error Error: EPERM: operation not permitted, unlink 'C:\Personal documents\Angular\myProject\node_modules\.staging\typescript-f4316380\lib\lib.dom.d.ts'
15186 error { [Error: EPERM: operation not permitted, unlink 'C:\Personal documents\Angular\myProject\node_modules\.staging\typescript-f4316380\lib\lib.dom.d.ts']
15186 error cause:
15186 error { Error: EPERM: operation not permitted, unlink 'C:\Personal documents\Angular\myProject\node_modules\.staging\typescript-f4316380\lib\lib.dom.d.ts'
15186 error errno: -4048,
15186 error code: 'EPERM',
15186 error syscall: 'unlink',
15186 error path:
15186 error 'C:\\Personal documents\\Angular\\myProject\\node_modules\\.staging\\typescript-f4316380\\lib\\lib.dom.d.ts' },
15186 error stack:
15186 error 'Error: EPERM: operation not permitted, unlink \'C:\\Personal documents\\Angular\\myProject\\node_modules\\.staging\\typescript-f4316380\\lib\\lib.dom.d.ts\'',
15186 error errno: -4048,
15186 error code: 'EPERM',
15186 error syscall: 'unlink',
15186 error path:
15186 error 'C:\\Personal documents\\Angular\\myProject\\node_modules\\.staging\\typescript-f4316380\\lib\\lib.dom.d.ts',
15186 error parent: '@angular-devkit/build-optimizer' }
15187 error The operation was rejected by your operating system.
15187 error It's possible that the file was already in use (by a text editor or antivirus),
15187 error or that you lack permissions to access it.
15187 error
15187 error If you believe this might be a permissions issue, please double-check the
15187 error permissions of the file and its containing directories, or try running
15187 error the command again as root/Administrator (though this is not recommended).
15188 verbose exit [ -4048, true ]
Я следовал указанному выше пути, и папки lib пустые.Я попытался переустановить узел, переустановить angular, очистить кеш с помощью --force, запустить от имени администратора, перезапустить.Ничего не помогает.
Обратите внимание, что я полный нуб в этом и просто пытаюсь изучить фреймворк, с которым сейчас кажется невозможным работать.
Я ожидаю, что пакеты будут установлены, и проект будетбыть созданным без проблем.