2017-04-26 10 views
1

언급 한대로 노드의 최신 버전으로 angular cli를 설치하려고했습니다. 그러나 성공하지 못했습니다. Windows7의 64
노드 v7.9.0
NPM : V4.2.0
오류가 나는 또한 동일한
OS는 말한다 내가 갓이 다른 컴퓨터에 그것을 시도 만Error : EPERM @ angular/cli를 설치할 수 없습니다.

FYI- 관리자 사용자와 그것을 시도했다 : EPERM : 작업이 불행하게도 package.json에게

C:\Windows\system32>npm install -g @angular/cli --save 
C:\Users\001091\AppData\Roaming\npm 
`-- (empty) 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\@a 
ngular\cli\node_modules\chokidar\node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected] 
1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"} 
) 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ 
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "@angular/cli" "--save" 
npm ERR! node v7.9.0 
npm ERR! npm v4.2.0 
npm ERR! path C:\Users\001091\AppData\Roaming\npm\node_modules\.staging\url-pars 
e-e45d5bd3\package.json.1317145617 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall rename 

npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\001091\AppData\ 
Roaming\npm\node_modules\.staging\url-parse-e45d5bd3\package.json.1317145617' -> 
'C:\Users\001091\AppData\Roaming\npm\node_modules\.staging\url-parse-e45d5bd3\p 
ackage.json' 
npm ERR! { Error: EPERM: operation not permitted, rename 'C:\Users\001091\AppDa 
ta\Roaming\npm\node_modules\.staging\url-parse-e45d5bd3\package.json.1317145617' 
-> 'C:\Users\001091\AppData\Roaming\npm\node_modules\.staging\url-parse-e45d5bd 
3\package.json' 
npm ERR! errno: -4048, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'rename', 
npm ERR! path: 'C:\\Users\\001091\\AppData\\Roaming\\npm\\node_modules\\.stagi 
ng\\url-parse-e45d5bd3\\package.json.1317145617', 
npm ERR! dest: 'C:\\Users\\001091\\AppData\\Roaming\\npm\\node_modules\\.stagi 
ng\\url-parse-e45d5bd3\\package.json', 
npm ERR! parent: '@angular/cli' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\001091\AppData\Roaming\npm-cache\_logs\2017-04-26T06_18_55 
_108Z-debug.log 

답변

1

의 이름을 변경하는 것은 허용되지, 각 CLI는 때때로 Windows 시스템에 대한 몇 가지 문제가 있습니다. 나는 시도하고 일을 몇 가지 가능한 솔루션에 대한 다음과 같은 스레드에서 참조하시기 바랍니다 : https://github.com/angular/angular-cli/issues/1349

C에서 .angular-cli.DELETE 파일을 찾을 수 없습니다 : 사용자의 AppData \ 로밍을 \\ \ \ NPM \이

을 node_modules

따라서 전체 노드 모듈 폴더를 삭제하고 npm 캐시를 지우고 다시 시도했습니다. 그것은 작동했습니다

1

나는 동일한 문제가있어서 기본 노드 대신 node.js 명령 프롬프트를 사용하여 설치하려고했습니다.

다른 사람에게 도움이되기를 바랍니다.

0

나를 위해 Powershell에서 npm 설치를 실행하여 문제가 발생했습니다. 전통적인 명령 프롬프트에서 실행하면 문제가 해결되었습니다.

관련 문제