title: install paper.js and typings file in angular 2
body: <p>I want to use paper.js in one of my components in Angular 2 but cannot seem to get it to work. The paper-full.js file runs when the component is loaded but it never recognizes the canvas.</p>
  
  <p>There is a typings file made by Clark-Stevenson (paper.d.ts) for paper.js and I think this might be part of the issue but when I try to install it following Ben Nadel's general instructions (see link) I get the following:</p>
  
  <p>C:\Users\levi\Documents\Programming\AngularDesigner2>./node_modules/.bin/typingsinstall --global --save file:./paper.d.ts</p>
  
  <p>'.' is not recognized as an internal or external command,
  operable program or batch file.</p>
  
  <p><a href="https://www.bennadel.com/blog/3169-adding-custom-typings-files-d-ts-in-an-angular-2-typescript-application.htm" rel="noreferrer">https://www.bennadel.com/blog/3169-adding-custom-typings-files-d-ts-in-an-angular-2-typescript-application.htm</a></p>
  
  <p><a href="https://github.com/clark-stevenson/paper.d.ts" rel="noreferrer">https://github.com/clark-stevenson/paper.d.ts</a> 
  I am new to paper.js, typescript and angular 2. </p>
  
  <p><strong>tsconfig.json</strong> </p>
  
  <pre><code>  {
    "compilerOptions": {
      "target": "es5",
      "module": "commonjs",
      "moduleResolution": "node",
      "sourceMap": true,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "lib": [ "es2015", "dom" ],
      "noImplicitAny": true,
      "suppressImplicitAnyIndexErrors": true
    },
    "files": [
      "paper.d.ts"
  
    ]
  }
  </code></pre>
  
  <p><strong>App.component.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  import '../../node_modules/paper/dist/docs/assets/js/paper.js';
  
  
  @Component({
    selector: 'my-app',
    templateUrl: 'app/canvas.html'
  })
  export class AppComponent  { 
  }
  </code></pre>
  
  <p><strong>canvas.html</strong></p>
  
  <pre><code>&lt;h1&gt;Canvas&lt;/h1&gt;
  &lt;canvas id="canvas"&gt;&lt;/canvas&gt;
  </code></pre>
  
  <p>The paper.d.ts file is found under src: src/paper.d.ts</p>