2017-11-16 3 views
1

Windows 7에서 Windows 10으로 랩톱을 변경 했으므로 특정 버전의 각도 cli를 설치할 수 없습니다.특정 버전의 angular-cli 설치

npm install -g @angular/[email protected] 

나는 또한 시도 :

npm uninstall -g @angular/cli 
npm cache clean 
npm install -g @angular/[email protected] 

내가 지속적으로 얻을 :

npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "@angular/[email protected]" 
npm ERR! node v7.9.0 
npm ERR! npm v4.2.0 

npm ERR! Cannot read property 'path' of null 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! Please include the following file with any support request: 
npm ERR!  D:\Users\ihazan\AppData\Roaming\npm-cache\_logs\2017-11-16T13_04_39_665Z-debug.log 

노드 버전 : 7.9.0

NPM 버전을

나는이 시도 : 4.2.0

답변

1

조사가 끝난 후 실제로는 바보 같은 오류입니다. 그럼에도 불구하고 위에 제공된 오류 메시지로 공유하는 것은 분명하지 않습니다.

버전 4.1.0에서는 각도 -cli가 없습니다.

다시 실행 트릭했던 다음과 같이 올바른 버전 :

npm install -g @angular/[email protected]