在ionic2中产生UNKNOWN错误

时间:2017-03-06 18:33:48

标签: cordova ionic2

我正在尝试使用ionic 2命令为ionic serve应用程序提供服务,但我收到错误消息:

$ ionic serve
******************************************************
 Dependency warning - for the CLI to run correctly,
 it is highly recommended to install/upgrade the following:

 Please update your Cordova CLI to version  >=4.2.0 `npm install -g cordova`

******************************************************
There was an error serving your Ionic application: Error: spawn UNKNOWN
    at exports._errnoException (util.js:1022:11)
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at Object.exports.spawn (child_process.js:380:9)
    at Function.spawn (C:\Users\user\AppData\Roaming\npm\node_modules\ionic\node                                                            _modules\cross-spawn\index.js:17:18)
    at Object.runIonicScript (C:\Users\user\AppData\Roaming\npm\node_modules\ion                                                            ic\lib\utils\npmScripts.js:72:32)
    at C:\Users\user\AppData\Roaming\npm\node_modules\ionic\lib\ionic\serve.js:1                                                            19:23
    at _fulfilled (C:\Users\user\AppData\Roaming\npm\node_modules\ionic\node_mod                                                            ules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\user\AppData\Roaming\npm\node_modules                                                            \ionic\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\user\AppData\Roaming\npm\node_m                                                            odules\ionic\node_modules\q\q.js:749:13)
    at C:\Users\user\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q.js:                                                            557:44

正在运行的版本:

离子版:2.2.1

Cordova版本:6.5.0

npm版本:3.10.10

节点版本:6.9.5

我使用ionic start myApp tabs --v2创建了项目。

0 个答案:

没有答案