2017-02-04 4 views
0

Error while running: npm install -g angular-cli오류 : npm install -g angular-cli | npm ERR! Windows_NT 10.0.10586

C:\Windows\System32>node -v 
v7.5.0 
C:\Windows\System32>npm -v 
4.1.2 
C:\Users\Chiranjeevi>npm -v minimatch 
4.1.2 
------------------------------------------------------------------------------------------- 
C:\Users\Chiranjeevi>npm install -g angular-cli 

NPM은 더 이상 사용되지 [email protected]을 WARN : regexp와 서비스 거부 문제를
C를 방지하기 위해 3.0.2 이상을 minimatch을 업데이트하십시오 : \ 사용자 \ 치란 지비 \의 AppData \ 로밍 \ NPM `- (빈)
NPM은 선택 건너 뛰는 선택적 종속성 WARN : [email protected]^1.0.0 (node_modules는 \ 각도-CLI \ node_modules \ chokidar \ node_modules \ fsevents) :
NPM은 선택적 종속성이 건너 뛰기 notsup WARN : 지원되지 않는 플랫폼을 (현재 : { "os": "win32", "arch": "x64"})
npm WARN @ [email protected] : 원한 { "os": "다윈", "아치" 안구 lar/[email protected]에는 [email protected]^5.0.1의 피어가 필요하지만 아무 것도 설치되어 있지 않습니다.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C : \\ 프로그램 파일 \\ nodejs \\ node.exe" "C : \\ 프로그램 파일 \\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js" "install" "-g ""angular-cli "
npm ERR! 노드 v7.5.0
npm ERR! npm v4.1.2
npm ERR! 경로 C : \ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json.797219503
npm ERR! 코드 ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! C : \ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json.797219503 '->'C : \ Users \ Chiranjeevi \ AppData '와 같은 파일이나 디렉토리를 ENOENT로 변경하지 마십시오. \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json '
npm ERR! C : \ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json.797219503 '->'C : \ Users \ Chiranjeevi \ AppData '와 같은 파일이나 디렉토리를 ENOENT로 변경하지 마십시오. \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json '
npm ERR! enoent 이것은 npm 자체에서 문제가되지 않을 가능성이 높습니다.
npm ERR! enoent이고 npm과 관련이 없으므로 파일을 찾을 수 없습니다.
npm ERR! enoent
npm ERR! 지원 요청과 함께 다음 파일을 포함하십시오.
npm ERR! C : \ 사용자 npm clear cache

을 실행하는 치란 지비 \ NPM-debug.log를에게

enter image description here

답변

0

시도를 \와 npm install -g angular-cli

2

보다 당신은 (https://docs.npmjs.com/cli/cache 참조) npm cache clean 대신 npm clear cache을 실행해야합니다.

관련해서 npm WARN @angular/[email protected] requires a peer of [email protected]^5.0.1 but none was installed. : open angular cli issue concerning rxjs이 있습니다. 문제가 발생하면 npm install -g rxjs을 실행할 수 있습니다.

또한 angular cli의 npm 패키지 이름이 angular-cli에서 @ angular-cli로 변경되었습니다.

입니다

, 다음은 도움이 될 수 있습니다 : npm uninstall -g angular-cli npm cache clean npm install -g rxjs npm install -g @angular/cli

+0

'NPM 나를 위해 – yunandtidus

+0

NPM의 ERR을했다 충분히 -g rxjs'를 설치! ENOENT : 해당 파일이나 디렉토리가 없으면 'C : \ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ css-parse-3e224c20 \ package.json.27297876'-> 'C : \ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ css-parse-3e224c20 \ package에 있습니다.json ' – Chiranjeevi