Using Node Module in Angular 2
<p>I am learning Angular 2 and trying to build a mobile app using Ionic 2 RC0 which uses Angular 2 and TypeScript. I am trying to use the node module <a href="https://www.npmjs.com/package/woocommerce-api" rel="nofollow noreferrer">woocommerce-api</a> in my app but I am always getting errors. </p>

<p>I installed the module using npm.</p>

<pre><code>npm install --save woocommerce-api
</code></pre>

<p>Then in my .ts file, I am trying to import it like this,</p>

<pre><code>import * as WC from '../../../node_modules/woocommerce-api'
</code></pre>

<p>Although VS Code does not display any errors but I still cannot get it to use in my methods and constructor.
I don't mind not getting the intellisense help but I just want to make this module work.</p>

<p>Any help is highly appreciated. Thanks in advance.</p>

<p>PS: There are no typings available for <a href="https://www.npmjs.com/package/woocommerce-api" rel="nofollow noreferrer">this</a> module.</p>