시도한 실행 npm 설치 -g @ angular/cliWindows cmd를 실행할 때 npm 설치가 실패하지만 git bash 또는 터미널에서 실행할 때 제대로 작동합니까?
그리고 일관되게 아래 오류가 발생했습니다. 관리자로도 실행하려고 시도했지만 결과는 없습니다.
23286 error path C:\Users\XX\AppData\Roaming\npm\ng
23287 error code EPERM
23288 error errno -4048
23289 error syscall open
23290 error Error: EPERM: operation not permitted, open 'C:\Users\XX\AppData\Roaming\npm\ng'
23290 error { Error: EPERM: operation not permitted, open 'C:\Users\XX\AppData\Roaming\npm\ng'
23290 error cause:
23290 error { Error: EPERM: operation not permitted, open 'C:\Users\XX\AppData\Roaming\npm\ng'
23290 error errno: -4048,
23290 error code: 'EPERM',
23290 error syscall: 'open',
23290 error path: 'C:\\Users\\XX\\AppData\\Roaming\\npm\\ng' },
23290 error stack: 'Error: EPERM: operation not permitted, open \'C:\\Users\\XX\\AppData\\Roaming\\npm\\ng\'',
23290 error errno: -4048,
23290 error code: 'EPERM',
23290 error syscall: 'open',
23290 error path: 'C:\\Users\\XX\\AppData\\Roaming\\npm\\ng' }
23291 error Please try running this command again as root/Administrator.
23292 verbose exit [ -4048, true ]
관리자도 시도 할 때 동일한 오류가 표시됩니까? –
Hi Jiithin, 예, 관리자 권한으로 실행, 아직 같은 문제로 명령 프롬프트를 열어 보았습니다. –
동일한 오류가 여러 사용자가 여러 가지 방법으로 해결되면 "https://github.com/angular/angular-cli/issues/1349"한 번이 링크를 참조하십시오. 여러 가지 옵션이 있습니다. 어느 옵션이든 해결할 수 있습니다. 작동, 설치 디렉토리를 변경해보십시오. –