cordova build android和ionic build android的结果是;SyntaxError:意外标记“;蓝屏之后
我已经用“cordova构建android”构建了我的应用程序(cordova,ionic)。但是当它被建造时,我得到了一个蓝色的屏幕。。现在我无法创建应用程序,不能使用“ionic build…”或“cordova build…” 我已经使用npm更新了nodeJS、cordova和IONAL。。但是仍然会出现同样的错误,我甚至从今天早上开始恢复了每日备份,错误仍然存在 错误:cordova build android和ionic build android的结果是;SyntaxError:意外标记“;蓝屏之后,cordova,build,ionic,Cordova,Build,Ionic,我已经用“cordova构建android”构建了我的应用程序(cordova,ionic)。但是当它被建造时,我得到了一个蓝色的屏幕。。现在我无法创建应用程序,不能使用“ionic build…”或“cordova build…” 我已经使用npm更新了nodeJS、cordova和IONAL。。但是仍然会出现同样的错误,我甚至从今天早上开始恢复了每日备份,错误仍然存在 错误: C:\***\DEV\App\flugdeck>cordova build android Running
C:\***\DEV\App\flugdeck>cordova build android
Running command: "C:\Program Files\nodejs\node.exe" "C:\***\DEV\App\flugdeck\hooks\before_prepare\01_jshint.js" "C:\***\DEV\App\flugdeck"
Linting www/js/app.js
File www/js/app.js has no errors.
-----------------------------------------
Linting www/js/config.js
File www/js/config.js has no errors.
-----------------------------------------
Linting www/js/controllers.js
File www/js/controllers.js has no errors.
-----------------------------------------
Linting www/js/controller_flightlog.js
File www/js/controller_flightlog.js has no errors.
-----------------------------------------
Linting www/js/controller_infotools.js
File www/js/controller_infotools.js has no errors.
-----------------------------------------
Linting www/js/controller_timetools.js
File www/js/controller_timetools.js has no errors.
-----------------------------------------
Linting www/js/directives.js
File www/js/directives.js has no errors.
-----------------------------------------
Linting www/js/factories.js
File www/js/factories.js has no errors.
-----------------------------------------
Linting www/js/filters.js
File www/js/filters.js has no errors.
-----------------------------------------
Linting www/js/mymodules.js
File www/js/mymodules.js has no errors.
-----------------------------------------
Linting www/js/services.js
File www/js/services.js has no errors.
-----------------------------------------
Linting www/js/templates.js
File www/js/templates.js has no errors.
-----------------------------------------
SyntaxError: Unexpected token
at Object.parse (native)
at Function.PlatformJson.load (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\PlatformJson.js:35:21)
at Object.handlePrepare (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\prepare.js:48:37)
at C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:105:21
at Array.map (native)
at C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\prepare.js:70:40
at _fulfilled (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
at C:\Users\MyUserName\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44
我找到了一个解决办法
我找到了一个解决办法
开始构建时,
json
配置文件中存在语法错误开始构建时,json
配置文件中存在语法错误