title: How can I resolve 'npm ERR! code ELIFECYCLE' in Project.js during npm start
body: <p>I was following the <a href="https://github.com/react-community/create-react-native-app#quick-overview" rel="noreferrer">getting started with create react native app</a> to create my first react native application. But I am getting the following error - </p>
  
  <pre><code>npm start
  </code></pre>
  
  <blockquote>
  <pre><code>2:11:42 PM: Starting packager... 
  
  2:11:46 PM: Error starting packager:
  Error: Couldn't start project. Please fix the errors and restart the
  project.
  
  at /xdl/src/Project.js:1039:11
  at Generator.next (&lt;anonymous&gt;)
  at step (/Users/xyz/my-app/node_modules/xdl/build/Project.js:1461:191)
  at /Users/xyz/my-app/node_modules/xdl/build/Project.js:1461:361
  at &lt;anonymous&gt; 
  npm ERR! code ELIFECYCLE 
  npm ERR! errno 1 
  npm ERR! my-app@0.1.0 start: `react-native-scripts start` 
  npm ERR! Exit status 1 
  npm ERR! Failed at the my-app@0.1.0 start script.
  </code></pre>
  </blockquote>
  
  <p>The line of code this trace is referring to in the file <strong><code>Project.js</code></strong> -</p>
  
  <pre><code>function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  </code></pre>
  
  <p>As suggested here <a href="https://stackoverflow.com/questions/42308879/npm-err-code-elifecycle">npm ERR! code ELIFECYCLE</a> I've tried to do a <code>npm run clean</code> and <em>delete node_modules</em> and <code>npm install</code>. But that didn't help either.</p>
  
  <p>Version details -</p>
  
  <pre><code>➜ npm -v
   5.0.1
  
  ➜ node -v
  v8.0.0
  </code></pre>