Ionic build command not working on my machine


#1

I am running “Ionic build android” command and getting below error.

cordova-android-support-gradle-release.after-prepare: Wrote custom version ‘27.+’ to C:\Welfare_Research_2009\Development\EC\Main\LmpIonic\platforms\android\build.gradle

cordova-android-support-gradle-release.before-prepare: Wrote custom version ‘27.+’ to C:\Welfare_Research_2009\Development\EC\Main\LmpIonic\platforms\android\cordova-android-support-gradle-release\properties.gradle

Discovered plugin “call-number” in config.xml. Adding it to the project

Failed to restore plugin “call-number” from config.xml. You might need to try adding it again. Error: SyntaxError: Unexpected token  in JSON at position 0

(node:20228) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token  in JSON at position 0

My Ionic info is shown below.

Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.0

//package.json
{
“name”: “LMPApp”,
“author”: "lmpnorway@tieto.com",
“homepage”: “http://tieto.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”,
“start”: “ionic serve”,
“test”: “karma start ./test-config/karma.conf.js”,
“test-coverage”: “ng test --code-coverage”,
“test-ci”: “ng test --watch=false --code-coverage”,
“ionic:watch”: “ionic-app-scripts watch”,
“ionic:serve:qa”: “set NODE_ENV=qa&& ionic serve”,
“ionic:serve:prod”: “set NODE_ENV=prod&& ionic serve”,
“ionic:serve:dev”: “set NODE_ENV=dev&& ionic serve”,
“ionic:serve:devMAS”: “set NODE_ENV=devMAS&& ionic serve”,
“ionic:build:qa”: “set NODE_ENV=qa&& ionic build android --prod --release”,
“ionic:build:prod”: “set NODE_ENV=prod&& ionic build android --prod --release”,
“ionic:build:dev”: “set NODE_ENV=dev&& ionic build android --prod --release”,
“ionic:build:devMAS”: “set NODE_ENV=devMAS&& ionic build android --prod --release”
},
“config”: {
“ionic_webpack”: “./webpack.config.js”
},
“version”: “1.0.0”,
“dependencies”: {
@angular/common”: “4.0.0”,
@angular/compiler”: “4.0.0”,
@angular/compiler-cli”: “4.0.0”,
@angular/core”: “4.0.0”,
@angular/forms”: “4.0.0”,
@angular/http”: “4.0.0”,
@angular/platform-browser”: “4.0.0”,
@angular/platform-browser-dynamic”: “4.0.0”,
@angular/platform-server”: “4.0.0”,
@angular/tsc-wrapped”: “4.0.0”,
@ionic-native/app-version”: “^4.4.0”,
@ionic-native/barcode-scanner”: “^4.3.2”,
@ionic-native/call-number”: “^4.9.1”,
@ionic-native/core”: “3.6.0”,
@ionic-native/device”: “3.4.2”,
@ionic-native/file”: “^4.3.3”,
@ionic-native/file-opener”: “^4.3.3”,
@ionic-native/file-transfer”: “^4.3.3”,
@ionic-native/keyboard”: “^3.4.2”,
@ionic-native/network”: “3.4.2”,
@ionic-native/secure-storage”: “3.4.3”,
@ionic-native/splash-screen”: “3.4.2”,
@ionic-native/status-bar”: “3.4.2”,
@ionic/storage”: “2.0.1”,
@ng-idle/core”: “2.0.0-beta.12”,
@ngx-translate/core”: “^6.0.1”,
@ngx-translate/http-loader”: “0.0.3”,
“angular-progress-bar”: “^1.0.0”,
“angular2-moment”: “^1.3.3”,
“cordova-android”: “~6.3.0”,
“cordova-android-support-gradle-release”: “~1.3.0”,
“cordova-plugin-app-version”: “0.1.9”,
“cordova-plugin-compat”: “^1.2.0”,
“cordova-plugin-console”: “1.0.5”,
“cordova-plugin-device”: “1.1.4”,
“cordova-plugin-file”: “^5.0.0”,
“cordova-plugin-file-opener2”: “^2.0.19”,
“cordova-plugin-file-transfer”: “^1.7.1”,
“cordova-plugin-ionic-keyboard”: “~2.0.5”,
“cordova-plugin-ionic-webview”: “~1.2.0”,
“cordova-plugin-network-information”: “^1.3.3”,
“cordova-plugin-phoniro”: “file:customplugins/cordova-plugin-phoniro”,
“cordova-plugin-secure-storage”: “2.6.3”,
“cordova-plugin-splashscreen”: “~4.0.1”,
“cordova-plugin-statusbar”: “2.2.1”,
“cordova-plugin-swift-support”: “~3.1.1”,
“cordova-plugin-whitelist”: “1.3.1”,
“ionic-angular”: “3.0.1”,
“ionic-plugin-keyboard”: “~2.2.1”,
“ionicons”: “3.0.0”,
“moment”: “^2.22.2”,
“moment-duration-format”: “1.3.0”,
“mx.ferreyra.callnumber”: “~0.0.2”,
“phonegap-plugin-barcodescanner”: “^6.0.8”,
“rxjs”: “5.1.1”,
“sw-toolbox”: “3.4.0”,
“xcode”: “^1.0.0”,
“zone.js”: “0.8.12”
},
“devDependencies”: {
@ionic/app-scripts”: “1.3.0”,
@ionic/cli-build-ionic-angular”: “0.0.3”,
@ionic/cli-plugin-cordova”: “0.0.9”,
@types/jasmine”: “2.5.38”,
@types/moment-duration-format”: “^1.3.5”,
@types/node”: “^7.0.8”,
“angular2-template-loader”: “0.6.2”,
“browser-sync”: “^2.24.4”,
“child_process”: “^1.0.2”,
“gulp”: “^3.9.1”,
“gulp-cli”: “^1.3.0”,
“html-loader”: “^0.4.5”,
“jasmine”: “^2.5.3”,
“karma”: “^1.5.0”,
“karma-chrome-launcher”: “^2.0.0”,
“karma-jasmine”: “^1.1.0”,
“karma-jasmine-html-reporter”: “^0.2.2”,
“karma-sourcemap-loader”: “^0.3.7”,
“karma-webpack”: “^2.0.3”,
“null-loader”: “^0.1.1”,
“ts-loader”: “^2.0.3”,
“typescript”: “~2.2.1”
},
“cordovaPlugins”: [
“cordova-plugin-whitelist”,
“cordova-plugin-console”,
“cordova-plugin-statusbar”,
“cordova-plugin-device”,
“cordova-plugin-splashscreen”,
“ionic-plugin-keyboard”
],
“cordovaPlatforms”: [],
“-vs-binding”: {
“BeforeBuild”: [
“ionic:build”
],
“ProjectOpened”: [
“ionic:watch”
]
},
“cordova”: {
“plugins”: {
“cordova-plugin-console”: {},
“cordova-plugin-device”: {},
“cordova-plugin-secure-storage”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“cordova-plugin-network-information”: {},
“phonegap-plugin-barcodescanner”: {
“CAMERA_USAGE_DESCRIPTION”: " "
},
“cordova-plugin-compat”: {},
“cordova-plugin-swift-support”: {},
“cordova-plugin-app-version”: {},
“cordova-plugin-file-transfer”: {},
“cordova-plugin-file”: {},
“cordova-plugin-file-opener2”: {},
“cordova-android-support-gradle-release”: {
“ANDROID_SUPPORT_VERSION”: “27.+”
},
“mx.ferreyra.callnumber”: {},
“call-number”: {},
“cordova-plugin-phoniro”: {},
“cordova-plugin-ionic-keyboard”: {},
“cordova-plugin-ionic-webview”: {}
},
“platforms”: [
“android”
]
}
}

Please help me running ionic build command so that i can test apk on my local.