title: Unable to resolve module "events" React-Native
body: <pre><code>The development server returned response error code: 500
  </code></pre>
  
  <p>URL: <a href="http://10.0.2.2:8081/index.android.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false" rel="noreferrer">http://10.0.2.2:8081/index.android.bundle?platform=android&amp;dev=true&amp;hot=false&amp;minify=false</a></p>
  
  <p>Body:
  {"message":"Unable to resolve module events from /Users/mohitverma/Desktop/Projects/Android Apps/easyread/node_modules/node-metainspector/index.js: Module does not exist in the module map or in these directories:\n  /Users/mohitverma/Desktop/Projects/Android Apps/easyread/node_modules/node-metainspector/node_modules\n,   /Users/mohitverma/Desktop/Projects/Android Apps/easyread/node_modules\n\nThis might be related to <a href="https://github.com/facebook/react-native/issues/4968" rel="noreferrer">https://github.com/facebook/react-native/issues/4968</a>\nTo resolve try the following:\n  1. Clear watchman watches: <code>watchman watch-del-all</code>.\n  2. Delete the <code>node_modules</code> folder: <code>rm -rf node_modules &amp;&amp; npm install</code>.\n  3. Reset packager cache: <code>rm -fr $TMPDIR/react-*</code> or <code>npm start -- --reset-cache</code>.","name":"UnableToResolveError","type":"UnableToResolveError","errors":[{}]}
  onResponse
      DevServerHelper.java:323
  execute
      RealCall.java:126
  run
      NamedRunnable.java:32
  runWorker
      ThreadPoolExecutor.java:1112
  run
      ThreadPoolExecutor.java:587
  run
      Thread.java:818</p>
  
  <pre><code>import React, {Component} from 'react';
  import {AppRegistry, StyleSheet, Text, View, Alert} from 'react-  native';
  var Extractor = require('node-metainspector');
  import axios from 'axios';
  
  const msgTitle = 'Server error';
  const msgDescription = 'Could not get data from website';
  
   export default class Web extends Component {
  
   constructor(props) {
      super(props);
      this.state = {
          siteDetail: {}
      };
  }
  
  componentDidMount() {
      axios(this.props.url).then((webResponse) =&gt; {
          //const siteDetail = Extractor(webResponse);
          //this.setState({siteDetail});
          Alert.alert(msgTitle, webResponse.toString());
      }).catch((err) =&gt; {
          Alert.alert(msgTitle, msgDescription);
      });
  }
  
  render() {
      const self = this;
  
      return (
          &lt;View style={styles.container}&gt;
              &lt;Text style={styles.welcome}&gt;
                  {self.state.siteDetail.title}
              &lt;/Text&gt;
          &lt;/View&gt;
      );
   }
  }
  </code></pre>