Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Error: Cannot find module 'xml2js' #233

Open
djereg opened this issue Sep 14, 2017 · 0 comments
Open

Error: Cannot find module 'xml2js' #233

djereg opened this issue Sep 14, 2017 · 0 comments

Comments

@djereg
Copy link

djereg commented Sep 14, 2017

Running command ionic package build android --release --prod --profile=prod results Failed on apps.ionic.io and the output is only Error: Cannot find module 'xml2js'.

Tried yesterday and today.

ionic package build android --release --prod --profile=prod

√ Retrieving security profile prod - done!
[INFO] Running app-scripts build: --prod --platform android
       
[12:45:36]  build prod started ... 
[12:45:36]  clean started ... 
[12:45:36]  clean finished in 35 ms 
[12:45:36]  copy started ... 
[12:45:36]  ngc started ... 
[12:45:56]  ngc finished in 19.89 s 
[12:45:56]  preprocess started ... 
[12:45:56]  deeplinks started ... 
[12:45:58]  deeplinks finished in 2.35 s 
[12:45:58]  optimization started ... 
[12:45:58]  copy finished in 22.82 s 
[12:46:19]  optimization finished in 21.07 s 
[12:46:19]  preprocess finished in 23.41 s 
[12:46:19]  webpack started ... 
[12:47:10]  webpack finished in 51.06 s 
[12:47:10]  sass started ... 
[12:47:10]  uglifyjs started ... 
[12:47:14]  sass finished in 4.08 s 
[12:47:14]  cleancss started ... 
[12:47:20]  cleancss finished in 5.92 s 
[12:47:53]  uglifyjs finished in 43.08 s 
[12:47:53]  postprocess started ... 
[12:47:53]  postprocess finished in 105 ms 
[12:47:53]  lint started ... 
[12:47:53]  build prod finished in 137.71 s 
> ionic cordova prepare android
> cordova prepare android
Attempting to set app name
Setting App Name:  T____________a
(node:11412) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

√ Requesting snapshot upload - done!
| Uploading snapshot (100.00%) [12:48:03]  lint finished in 9.76 s
√ Uploading snapshot - done!
[OK] Uploaded snapshot 94a057fa-6c54-410d-9f3e-62a4dbf14f06!
√ Requesting project upload - done!
√ Uploading project - done!
√ Queuing build - done!
[OK] Build 204 has been submitted!
ionic info

cli packages: (G:\app\tb-app\node_modules)

    @ionic/cli-utils  : 1.10.2
    ionic (Ionic CLI) : 3.10.3

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.1.2 ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.1

System:

    Node : v8.5.0
    npm  : 5.3.0 
    OS   : Windows 10

package.json
{
    "name": "T____________a",
    "version": "1.0.9",
    "author": "",
    "homepage": "",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "lint": "ionic-app-scripts lint",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@fancyapps/fancybox": "^3.1.20",
        "@ionic-native/app-rate": "4.2.1",
        "@ionic-native/app-version": "4.2.1",
        "@ionic-native/camera": "4.2.1",
        "@ionic-native/core": "4.2.1",
        "@ionic-native/device": "4.2.1",
        "@ionic-native/facebook": "4.2.1",
        "@ionic-native/geolocation": "4.2.1",
        "@ionic-native/google-analytics": "4.2.1",
        "@ionic-native/launch-navigator": "4.2.1",
        "@ionic-native/network": "4.2.1",
        "@ionic-native/onesignal": "4.2.1",
        "@ionic-native/splash-screen": "4.2.1",
        "@ionic-native/status-bar": "4.2.1",
        "@ionic/cloud-angular": "^0.12.0",
        "@ionic/storage": "2.0.1",
        "@types/googlemaps": "^3.26.20",
        "@types/node": "^8.0.28",
        "angular2-elastic": "0.13.0",
        "cordova-android": "^6.1.2",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-app-name": "^1.0.1",
        "cordova-plugin-app-version": "^0.1.9",
        "cordova-plugin-apprate": "^1.3.0",
        "cordova-plugin-camera": "^2.4.1",
        "cordova-plugin-compat": "^1.1.0",
        "cordova-plugin-device": "^1.1.6",
        "cordova-plugin-dialogs": "^1.3.3",
        "cordova-plugin-facebook4": "^1.9.0",
        "cordova-plugin-geolocation": "^2.4.3",
        "cordova-plugin-globalization": "^1.0.7",
        "cordova-plugin-google-analytics": "^1.8.2",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-ios-non-exempt-encryption": "^1.0.0",
        "cordova-plugin-network-information": "^1.3.3",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.3",
        "cordova-plugin-whitelist": "^1.3.2",
        "cordova-plugin-wkwebview-engine": "^1.1.3",
        "cordova-sqlite-storage": "^2.0.4",
        "es6-promise-plugin": "git+https://github.com/vstirbu/PromisesPlugin.git",
        "font-awesome": "4.7.0",
        "freewall": "^1.0.8",
        "ionic-angular": "3.6.1",
        "ionic-cache": "2.0.5",
        "ionic-plugin-deploy": "^0.6.7",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "jquery": "^3.2.1",
        "moment": "2.17.1",
        "ng-lazyload-image": "^3.1.0",
        "onesignal-cordova-plugin": "^2.1.1",
        "raven-js": "^3.16.0",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "typings": "^2.0.0",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@ionic/app-scripts": "2.1.4",
        "ionic": "3.10.3",
        "tslint-ionic-rules": "0.0.11",
        "typescript": "2.3.4"
    },
    "description": "",
    "cordovaPlugins": [],
    "cordovaPlatforms": [],
    "cordova": {
        "platforms": [
            "android",
            "ios"
        ],
        "plugins": {
            "cordova-plugin-facebook4": {
                "APP_ID": "1______________3",
                "APP_NAME": "T____________a"
            },
            "cordova-sqlite-storage": {},
            "cordova-plugin-wkwebview-engine": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-inappbrowser": {},
            "cordova-plugin-network-information": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "cordova-plugin-device": {},
            "cordova-plugin-app-version": {},
            "cordova-plugin-apprate": {},
            "cordova-plugin-app-name": {
                "APP_NAME": "T____________a"
            },
            "cordova-plugin-ios-non-exempt-encryption": {},
            "cordova-plugin-google-analytics": {},
            "cordova-plugin-geolocation": {
                "GEOLOCATION_USAGE_DESCRIPTION": "A földrajzi helyzeted meghatározásához szükséges, pl. bejelentés küldésekor."
            },
            "cordova-plugin-camera": {
                "CAMERA_USAGE_DESCRIPTION": "Képek készítéséhez szükséges, pl. bejelentés küldésekor.",
                "PHOTOLIBRARY_USAGE_DESCRIPTION": "Képek kiválasztásához szükséges, pl. bejelentés küldésekor."
            },
            "onesignal-cordova-plugin": {},
            "ionic-plugin-deploy": {}
        }
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant