Ionic 2安装问题

Non*_*ono 3 install node.js cordova ionic-framework ionic2

我正在尝试用npm安装离子框架.我现在有些问题.起初我尝试使用最新的节点版本(6.8),当我安装离子时,我总是遇到minimatch版本的错误.现在我卸载了节点并安装了LTS版本(4.6.0).现在,当我运行"npm install -g ionic"时,没有错误或警告.但是当我运行"npm install -g cordova"时,我再次发出了迷你匹配警告.现在,当我尝试使用"离子启动测试选项卡--v2"启动离子项目时,我收到以下消息:

...
Installing npm packages...
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
 undefined
...

$离子信息

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
OS:
Node Version: v4.6.0

$ npm过时(在新的Ionic Project文件夹中)

Package                   Current                   Wanted      Latest  Location
@angular/compiler-cli       0.6.4                    0.6.4       2.1.0  @angular\compiler-cli
@ionic/app-scripts         0.0.30                   0.0.30      0.0.33  @ionic\app-scripts
ionic-angular          2.0.0-rc.1  2.0.0-rc.0-201610131811  2.0.0-rc.1  ionic-angular

有人知道如何才能正确安装离子?我正在使用Windows 10.

Non*_*ono 8

好吧现在似乎工作了.起初我再次安装了最新的节点版本.但后来我又遇到了同样的问题.但是在这些步骤之后它起作用:

$ npm uninstall ionic -g 
$ npm uninstall cordova -g 
$ npm cache clean
$ npm install cordova -g 
$ npm install ionic -g
Run Code Online (Sandbox Code Playgroud)

所以看起来问题是,我首先安装了离子.