title: Ionic Error: Cannot find module 'dezalgo'
body: <p>i am trying to add the ios platform to my project so i can build it in XCode. I ran the following command: ionic cordova platform add ios</p>
  
  <p>this is the error i got:</p>
  
  <pre><code>ionic cordova platform add ios
  &gt; cordova platform add ios --save
  module.js:544
      throw err;
      ^
  
  Error: Cannot find module 'dezalgo'
      at Function.Module._resolveFilename (module.js:542:15)
      at Function.Module._load (module.js:472:25)
      at Module.require (module.js:585:17)
      at require (internal/module.js:11:18)
      at Object.&lt;anonymous&gt; (/Users/chando/Documents/GIT/testproject/node_modules/cordova-lib/node_modules/npm/lib/utils/correct-mkdir.js:2:15)
      at Module._compile (module.js:641:30)
      at Object.Module._extensions..js (module.js:652:10)
      at Module.load (module.js:560:32)
      at tryModuleLoad (module.js:503:12)
      at Function.Module._load (module.js:495:3)
  [ERROR] Exception: 
  </code></pre>
  
  <p>i have tried multiple variations of deleting node_modules, installing the latest version of ionic, npm etc to no avail.</p>
  
  <p>Has anyone else encountered this? </p>
  
  <p>this is my ionic info:</p>
  
  <p>cli packages: (/usr/local/lib/node_modules)</p>
  
  <pre><code>@ionic/cli-utils  : 1.19.0
  ionic (Ionic CLI) : 3.19.0
  </code></pre>
  
  <p>global packages:</p>
  
  <pre><code>cordova (Cordova CLI) : not installed
  </code></pre>
  
  <p>local packages:</p>
  
  <pre><code>@ionic/app-scripts : 2.1.4
  Cordova Platforms  : none
  Ionic Framework    : ionic-angular 3.9.2
  </code></pre>
  
  <p>System:</p>
  
  <pre><code>Node  : v9.2.1
  npm   : 5.6.0 
  OS    : macOS Sierra
  Xcode : Xcode 9.2 Build version 9C40b 
  </code></pre>
  
  <p>Environment Variables:</p>
  
  <pre><code>ANDROID_HOME : not set
  </code></pre>
  
  <p>Misc:</p>
  
  <pre><code>backend : pro
  </code></pre>