title: nodejs Import require conversion
body: <p>Learning NodeJs here.  Problem is when I tried to search for answers, I am not finding what I am looking for.  Probably because this is too basic or non-issue.</p>
  
  <p>I am working on nodejs with angular2.  So naturally, I have things like:</p>
  
  <pre><code>import { stuff } from 'some_module'
  </code></pre>
  
  <p>But I am trying to work with a package that has usage example of:</p>
  
  <pre><code>var stuff = require('some_module')
  </code></pre>
  
  <p>Obviously, my code didn't work when I use import etc. else I wouldn't be posting here.  Is it because I am doing something wrong?  Or am I out of luck such that this particular module doesn't work with import?  Can someone shed some light on how to write proper import statements when I see usage sample of require('some_stuff'), so I can use other modules I download from npm?</p>
  
  <p>thanks in advance.</p>
  
  <p>EDIT:
  So I tried npm install requirejs --save.  Then I wrote the require statement above.  But I am getting a 404 on the package...</p>