我试图安装npm的离子框架。我现在有一些问题。起初,我尝试了最新的节点版本(6.8),当我安装离子时,我总是在minimatch版本中遇到错误。现在我卸载了节点并安装了LTS版本(4.6.0)。现在,当我运行“npm install -g离子”时,没有任何错误或警告。但是当我运行“npm install -g cordova”时,我又收到了minimatch警告。现在,当我尝试启动离子项目“离子开始测试选项卡--v2”我收到以下消息:Ionic 2安装问题
... 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过时的(在新的离子项目文件夹)
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.
尝试更新你的'npm'后执行'npm install -g npm'执行这个命令来更新你的'npm install -g minimatch @ 3.0.3' –