title: issue with adding iOS platform into ionic cordova project
body: <p>I am new to the framework <code>ionic cordova</code> and have a problem. I got a project from a colleague and should create it for <code>ios</code>. Immediately when creating the iOS platform, errors occurs:</p>
  <pre><code>Heikos-MacBook-Pro:project_app premox$ ionic cordova build ios --prod
  Using cordova-fetch for cordova-ios@4.5.5
  Adding ios project...
  Creating Cordova project for the iOS platform:
      Path: platforms/ios
      Package: com.project
      Name: Project.com
  iOS project created with cordova-ios@4.5.5
  Installing &quot;cordova-plugin-add-swift-support&quot; for ios
  Installing &quot;cordova-plugin-android-permissions&quot; for ios
  Installing &quot;cordova-plugin-device&quot; for ios
  Installing &quot;cordova-plugin-globalization&quot; for ios
  Installing &quot;cordova-plugin-inappbrowser&quot; for ios
  Installing &quot;cordova-plugin-ionic-webview&quot; for ios
  Installing &quot;cordova-plugin-ios-camera-permissions&quot; for ios
  Installing &quot;cordova-plugin-qrscanner&quot; for ios
  Plugin dependency &quot;cordova-plugin-add-swift-support@1.7.2&quot; already fetched, using that version.
  Dependent plugin &quot;cordova-plugin-add-swift-support&quot; already installed on ios.
  Installing &quot;cordova-plugin-splashscreen&quot; for ios
  Installing &quot;cordova-plugin-whitelist&quot; for ios
  Installing &quot;ionic-plugin-keyboard&quot; for ios
  Discovered saved plugin &quot;cordova-sqlite-storage&quot;. Adding it to the project
  Installing &quot;cordova-sqlite-storage&quot; for ios
  Failed to install 'cordova-sqlite-storage': CordovaError: Using &quot;requireCordovaModule&quot; to load non-cordova module &quot;q&quot; is not supported. Instead, add this module to your dependencies and use regular &quot;require&quot; to load it.
      at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
      at module.exports (/Users/premox/Documents/projects/project_app/plugins/cordova-sqlite-storage/scripts/beforePluginInstall.js:13:21)
      at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
      at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
      at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
      at processTicksAndRejections (internal/process/task_queues.js:89:5)
  Failed to restore plugin &quot;cordova-sqlite-storage&quot; from config.xml. You might need to try adding it again. Error: Using &quot;requireCordovaModule&quot; to load non-cordova module &quot;q&quot; is not supported. Instead, add this module to your dependencies and use regular &quot;require&quot; to load it.
  Discovered saved plugin &quot;cordova-plugin-statusbar&quot;. Adding it to the project
  Installing &quot;cordova-plugin-statusbar&quot; for ios
  Adding cordova-plugin-statusbar to package.json
  Failed to restore plugin &quot;cordova-plugin-statusbar&quot; from config.xml. You might need to try adding it again. Error: Using &quot;requireCordovaModule&quot; to load non-cordova module &quot;glob&quot; is not supported. Instead, add this module to your dependencies and use regular &quot;require&quot; to load it.
  Using &quot;requireCordovaModule&quot; to load non-cordova module &quot;glob&quot; is not supported. Instead, add this module to your dependencies and use regular &quot;require&quot; to load it.
  [ERROR] An error occurred while running subprocess cordova.
          
          cordova platform add ios --save exited with exit code 1.
          
          Re-running this command with the --verbose flag may provide more information.
  </code></pre>
  <p>I repeated the call with <code>--verbose</code> and got the following error message:</p>
  <pre><code>Heikos-MacBook-Pro:project_app premox$ ionic cordova build ios --prod --verbose
    ionic:lib Terminal info: { tty: true, ci: false, windows: false } +0ms
    ionic:lib CLI global options: { _: [ 'cordova', 'build', 'ios' ], help: null, h: null, verbose: true, quiet: null, interactive: true, color: true, confirm: null, json: null, prod: true, project: null, '--': [] } +10ms
    ionic:lib:project Project type from config: Ionic 2/3 (ionic-angular) +0ms
    ionic:lib:project Project details: { configPath: '/path/to/project/ionic.config.json', errors: [], context: 'app', type: 'ionic-angular' } +0ms
    ionic Context: { binPath: '/usr/local/lib/node_modules/ionic/bin/ionic', libPath: '/usr/local/lib/node_modules/ionic', execPath: '/path/to/project', version: '4.12.0' } +0ms
    ionic:lib:integrations:cordova:config Using config.xml: /path/to/project/config.xml +0ms
    ionic:lib:telemetry Sending telemetry for command: 'ionic cordova build' [ 'ios', '--prod', '--verbose', '--interactive', '--color' ] +0ms
    ionic:lib:hooks Looking for ionic:build:before npm script. +0ms
    ionic:lib:project:ionic-angular:build Looking for ionic:build npm script. +0ms
    ionic:lib:project:ionic-angular:build Found ionic:build, but it is the default. Not running. +13ms
  &gt; ionic-app-scripts build --prod --target cordova --platform ios
  /path/to/project/node_modules/node-sass/lib/binding.js:13
        throw new Error(errors.unsupportedEnvironment());
        ^
  
  Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (72)
  For more information on which environments are supported please see:
  https://github.com/sass/node-sass/releases/tag/v4.5.3
      at module.exports (/path/to/project/node_modules/node-sass/lib/binding.js:13:13)
      at Object.&lt;anonymous&gt; (/path/to/project/node_modules/node-sass/lib/index.js:14:35)
      at Module._compile (internal/modules/cjs/loader.js:774:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
      at Module.load (internal/modules/cjs/loader.js:641:32)
      at Function.Module._load (internal/modules/cjs/loader.js:556:12)
      at Module.require (internal/modules/cjs/loader.js:681:19)
      at require (internal/modules/cjs/helpers.js:16:16)
      at Object.&lt;anonymous&gt; (/path/to/project/node_modules/@ionic/app-scripts/dist/core/bundle-components.js:6:16)
      at Module._compile (internal/modules/cjs/loader.js:774:30)
  [ERROR] An error occurred while running subprocess ionic-app-scripts.
          
          ionic-app-scripts build --prod --target cordova --platform ios exited with exit code 1.
          
          Re-running this command with the --verbose flag may provide more information.
    ionic:utils-process onBeforeExit handler: process.exit received +0ms
    ionic:utils-process onBeforeExit handler: running 1 functions +1ms
    ionic:utils-process onBeforeExit handler: exiting (exit code 1) +71ms
  </code></pre>
  <p>I do not quite understand this error message. What does it mean and how can I fix it?</p>
  <h1>EDIT</h1>
  <p>I uninstalled the <code>cordova-sqlite-storage</code> plugin and wanted to reinstall it and got the following message:</p>
  <pre><code>Heikos-MacBook-Pro:project_app premox$ ionic cordova plugin rm cordova-sqlite-storage
  &gt; cordova plugin remove cordova-sqlite-storage --save
  Uninstalling cordova-sqlite-storage from ios
  Removing &quot;cordova-sqlite-storage&quot;
  Removing cordova-sqlite-storage from package.json
  Heikos-MacBook-Pro:project_app premox$ cordova plugin add cordova-sqlite-storage@latest
  ^C
  Heikos-MacBook-Pro:project_app premox$ ionic cordova plugin add cordova-sqlite-storage@latest
  &gt; cordova plugin add cordova-sqlite-storage@latest --save
  Installing &quot;cordova-sqlite-storage&quot; for ios
  installing external dependencies via npm
  for package name: cordova-sqlite-storage
  npm install of external dependencies ok
  Adding cordova-sqlite-storage to package.json
  Using &quot;requireCordovaModule&quot; to load non-cordova module &quot;glob&quot; is not supported. Instead, add this module to your dependencies and use regular &quot;require&quot; to load it.
  [ERROR] An error occurred while running subprocess cordova.
          
          cordova plugin add cordova-sqlite-storage@latest --save exited with exit code 1.
          
          Re-running this command with the --verbose flag may provide more information.
  </code></pre>