Ionic Intsallation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #18091

    Hi, I installed JAVA, Git, nodes.js, angular cli successfully on my Mac and then did run sudo npm install -g ionic cordova which returned
    /usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
    /usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic
    + [email protected]
    + [email protected]
    updated 2 packages in 10.857s
    But when I then run $ ionic -v I get an Error:
        throw err;
    Error: Cannot find module './lib/_stream_duplex.js'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
        at Function.Module._load (internal/modules/cjs/loader.js:507:25)
        at Module.require (internal/modules/cjs/loader.js:637:17)
        at require (internal/modules/cjs/helpers.js:22:18)
        at Object.<anonymous> (/usr/local/lib/node_modules/ionic/node_modules/readable-stream/readable.js:16:20)
        at Module._compile (internal/modules/cjs/loader.js:689:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
        at Module.load (internal/modules/cjs/loader.js:599:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
        at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    Any suggestion how to fix that? THANKS

    Strange error there  . Please refer :  If above does not works then install the ionic and cordova both of specific version : this is my ionic environment :


    cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.1

    ionic (Ionic CLI) : 3.19.1

    global packages:

    cordova (Cordova CLI) : 8.0.0

    local packages:

    @ionic/app-scripts : 3.1.8

    Cordova Platforms  : ios 4.5.4

    Ionic Framework    : ionic-angular 3.9.2


    ios-deploy : 1.9.2

    Node       : v6.11.4

    npm        : 3.10.10

    OS         : macOS High Sierra

    Xcode      : Xcode 9.0 Build version 9A235

      refer :

    Environment Variables:

    ANDROID_HOME : not set


    backend : pro

    Cordova plugins and their versions :

    cordova-plugin-camera 4.0.2 “Camera”

    cordova-plugin-console 1.1.0 “Console”

    cordova-plugin-device 2.0.1 “Device”

    cordova-plugin-facebook4 2.0.1 “Facebook Connect”

    cordova-plugin-file 6.0.1 “File”

    cordova-plugin-file-transfer 1.7.1 “File Transfer”

    cordova-plugin-googleplus 5.3.0 “Google SignIn”

    cordova-plugin-inappbrowser 2.0.2 “InAppBrowser”

    cordova-plugin-inapppurchase 1.1.0 “In App Purchase”

    cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”

    cordova-plugin-ionic-webview 1.1.16 “cordova-plugin-ionic-webview”

    cordova-plugin-splashscreen 5.0.2 “Splashscreen”

    cordova-plugin-statusbar 2.4.2 “StatusBar”

    cordova-plugin-whitelist 1.3.3 “Whitelist”

    cordova-sqlite-storage 2.0.4 “Cordova sqlite storage plugin”

    ionic-plugin-keyboard 2.2.1 “Keyboard”.

    config.xml file and package.json files :

    You can take backup of your ionic setup rename the package.json file and node_modules folder .

    then you have to add the given config.json file to your project and open terminal and run :

    npm install

    After that please check for the corodova plugins .

    Install the cordova plugins with their versions mentioned above .

    example :

    cordova plugin add {cordova plugin name}@{version}

    cordova plugin add [email protected]

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘[DEPRECATED] Ionic App Support’ is closed to new topics and replies.
Copyright VibeThemes.