Ionic 1, $npm i, command failed


#1

Hello, with IOS 11 I got a bug on one of my application.

I re-clone the repository.

And do a $ npm i

But the command failed :

➜  myapp git:(master) ✗ sudo npm i
npm WARN deprecated @ionic/cli-plugin-cordova@1.4.1: Ionic CLI 3.8 no longer loads this plugin. See https://github.com/ionic-team/ionic-cli/blob/master/CHANGELOG.md#3.8.0
npm ERR! code 1
npm ERR! Command failed: /usr/local/bin/git clone --depth=1 -q -b master https://github.com/driftyco/cordova-plugin-wkwebview-engine.git /Users/dev/.npm/_cacache/tmp/git-clone-254b069c
npm ERR! /Users/dev/.npm/_cacache/tmp/git-clone-254b069c/.git: Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dev/.npm/_logs/2017-09-21T19_22_24_231Z-debug.log

My config :

Cordova CLI: 7.0.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 1.3.2
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.11.3
Xcode version: Xcode 9.0 Build version 9A235

I think there is a problem with the package.json

{
    "name": "myapp",
    "version": "1.1.1",
    "description": "MyApp: An Ionic project",
    "dependencies": {
        "cordova-android": "^6.2.3",
        "cordova-plugin-crosswalk-webview": "^2.3.0",
        "cordova-plugin-dialogs": "^1.3.3",
        "cordova-plugin-inappbrowser": "^1.6.1",
        "cordova-plugin-wkwebview-engine": "git+https://github.com/driftyco/cordova-plugin-wkwebview-engine.git",
        "cordova-plugin-x-socialsharing": "^5.1.8",
        "org.apache.cordova.estat": "https://github.com/benbvs/cordova-eStat"
    },
    "devDependencies": {
        "@ionic/cli-plugin-cordova": "1.4.1",
        "@ionic/cli-plugin-gulp": "1.0.2",
        "@ionic/cli-plugin-ionic1": "2.0.1",
        "bower": "^1.3.3",
        "gulp-autoprefixer": "^3.1.1",
        "gulp-minify": "0.0.14",
        "gulp-util": "^2.2.14",
        "shelljs": "^0.3.0"
    },
    "cordovaPlugins": [
        "cordova-plugin-whitelist",
        "cordova-plugin-console",
        "cordova-plugin-statusbar",
        "cordova-plugin-device",
        "ionic-plugin-keyboard",
        "cordova-plugin-splashscreen",
        "cordova-plugin-network-information",
        "cordova-plugin-inappbrowser@~1.6.1",
        "cordova-plugin-x-socialsharing",
        "cordova-plugin-dialogs",
        {
            "locator": "https://github.com/danwilson/google-analytics-plugin.git",
            "id": "cordova-plugin-google-analytics"
        },
        "onesignal-cordova-plugin",
        "cordova-plugin-x-socialsharing@~5.1.5",
        "cordova-plugin-dialogs@~1.3.1"
    ],
    "cordovaPlatforms": [
        "android"
    ],
    "cordova": {
        "plugins": {
            "cordova-plugin-crosswalk-webview": {
                "XWALK_VERSION": "23+",
                "XWALK_LITEVERSION": "xwalk_core_library_canary:17+",
                "XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect",
                "XWALK_MODE": "embedded",
                "XWALK_MULTIPLEAPK": "true"
            },
            "cordova-plugin-dialogs": {},
            "cordova-plugin-inappbrowser": {},
            "cordova-plugin-wkwebview-engine": {},
            "cordova-plugin-x-socialsharing": {},
            "org.apache.cordova.estat": {}
        },
        "platforms": [
            "android"
        ]
    }
}

If anyone can help me. Please !


#2

Update your ionic CLI


#3

I removed in dependencies the cordova plugins and it works