安装angular-cli的特定版本

我把我的笔记本电脑从Windows 7更改到Windows 10,我不能安装特定版本的angular度cli。

我试过这个:

npm install -g @angular/cli@4.1.0 

我也试过:

 npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@4.1.0 

我始终得到:

 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/cli@4.1.0" 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

经过一番调查,这实际上是一个愚蠢的错误。 尽pipe如此,作为上面提供的错误信息分享它并不清楚。

事实certificate,版本4.1.0没有angular度cli。

重新运行正确的版本如下诀窍:

 npm install -g @angular/cli@1.2.4