title: Error when compiling using NPM
body: <p>Im new to angularjs, i got a project file that is in angular framework which i am currently new, we actually have two files the one works fine but the other does not, they other project file has a .bin on it and works just fine, the other which we are currently tinkering has no .bin folder, how do we generate a .bin folder or how do we fix the error shown bellow:</p>
  
  <blockquote>
    <p>ERROR in Error encountered resolving symbol values statically. Calling function 'ɵmakeDecorator', function calls are not supported. Consider replacing the funct                                       ion or lambda with a reference to an exported function, resolving symbol NgModul                                       e in C:/xampp/htdocs/my-app/node_modules/angular-datatables/node_modules/@angula                                       r/core/core.d.ts, resolving symbol DataTablesModule in C:/xampp/htdocs/my-app/no                                       de_modules/angular-datatables/src/angular-datatables.module.d.ts, resolving symb                                       ol DataTablesModule in C:/xampp/htdocs/my-app/node_modules/angular-datatables/sr                                       c/angular-datatables.module.d.ts</p>
  </blockquote>
  
  <p>I get the error message "not a binary etc" when running <code>npm run ng serve</code>. so I copied the <code>bin</code> folder of a working application to the current application and it was able to run the command only I get the error message above upon doing so.</p>
  
  <p>Here is the content of <strong>package.json</strong>:</p>
  
  <pre><code>{
    "name": "my-app",
    "version": "0.0.0",
    "license": "MIT",
    "scripts": {
      "ng": "ng",
      "start": "ng serve",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
    },
    "private": true,
    "dependencies": {
      "@angular/animations": "^4.0.1",
      "@angular/common": "^4.0.0",
      "@angular/compiler": "^4.0.0",
      "@angular/core": "^4.0.0",
      "@angular/forms": "^4.0.0",
      "@angular/http": "^4.0.0",
      "@angular/platform-browser": "^4.0.0",
      "@angular/platform-browser-dynamic": "^4.0.0",
      "@angular/router": "^4.0.0",
      "@types/datatables.net": "^1.10.1",
      "angular-datatables": "^4.1.0",
      "angular2-busy": "^2.0.3",
      "angular2-datatable": "^0.6.0",
      "angular2-highcharts": "^0.5.5",
      "angular2-notifications": "^0.4.53",
      "angulartics-google-analytics": "^0.4.0",
      "angulartics2": "^2.2.1",
      "chart.js": "^2.5.0",
      "core-js": "^2.4.1",
      "datatables.net": "^1.10.15",
      "datatables.net-dt": "^1.10.15",
      "jquery": "^3.2.1",
      "ng2-charts": "^1.5.0",
      "ng2-dropdown-multiselect": "^1.2.0",
      "ng2-select": "^1.2.0",
      "ng2-slim-loading-bar": "^4.0.0",
      "ng2-toastr": "^4.0.1",
      "ngDfp": "^0.16.0",
      "rxjs": "^5.1.0",
      "sweetalert2": "^6.5.6",
      "toastr-ng2": "^4.1.1",
      "zone.js": "^0.8.4"
    },
    "devDependencies": {
      "@angular/cli": "1.0.0",
      "@angular/compiler-cli": "^4.0.0",
      "@types/datatables.net": "^1.10.1",
      "@types/jasmine": "2.5.38",
      "@types/jquery": "^2.0.45",
      "@types/node": "~6.0.60",
      "angular-2-dropdown-multiselect": "^1.1.0",
      "codelyzer": "~2.0.0",
      "jasmine-core": "~2.5.2",
      "jasmine-spec-reporter": "~3.2.0",
      "karma": "~1.4.1",
      "karma-chrome-launcher": "~2.0.0",
      "karma-cli": "~1.0.1",
      "karma-coverage-istanbul-reporter": "^0.2.0",
      "karma-jasmine": "~1.1.0",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.1.0",
      "ts-node": "~2.0.0",
      "tslint": "~4.5.0",
      "typescript": "~2.2.0"
    }
  }
  </code></pre>
  
  <p>when I run <code>npm start</code>, I am getting this error message:</p>
  
  <pre><code>$ npm start
  </code></pre>
  
  <blockquote>
    <blockquote>
      <p>my-app@0.0.0 start C:\xampp\htdocs\my-app
      ng serve</p>
    </blockquote>
    
    <p>'ng' is not recognized as an internal or external command,  operable
    program or batch file.<br>
       npm ERR! code ELIFECYCLE   npm ERR! errno 1
      npm ERR! my-app@0.0.0 start: <code>ng serve</code>     npm ERR! Exit status 1  npm
    ERR!  npm ERR! Failed at the my-app@0.0.0 start script.   npm ERR! This
    is probably not a problem with npm. There is likely additional logging
    output above.</p>
    
    <p>npm ERR! A complete log of this run can be found in:    npm ERR!<br>
    C:\Users\lboadilla\AppData\Roaming\npm-cache_logs\2017-05-24T05_42_53_038Z-debug.log</p>
  </blockquote>
  
  <p>when i use the command <strong>npm install</strong> i get:</p>
  
  <pre><code>    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
  npm WARN angular2-datatable@0.6.0 requires a peer of @angular/core@^2.0.0 but none was installed.
  npm WARN angular2-datatable@0.6.0 requires a peer of @angular/common@^2.0.0 but none was installed.
  npm WARN angular2-datatable@0.6.0 requires a peer of @angular/platform-browser@^2.0.0 but none was installed.
  npm WARN ng2-charts@1.5.0 requires a peer of @angular/common@^2.3.0 but none was installed.
  npm WARN ng2-charts@1.5.0 requires a peer of @angular/core@^2.3.0 but none was installed.
  npm WARN angulartics-google-analytics@0.4.0 requires a peer of angulartics@^1.0.0 but none was installed.
  npm WARN toastr-ng2@4.1.1 requires a peer of @angular/core@^2.2.0 but none was installed.
  npm WARN toastr-ng2@4.1.1 requires a peer of @angular/common@^2.2.0 but none was installed.
  npm WARN angular2-notifications@0.4.53 requires a peer of @angular/core@^2.1.2 but none was installed.
  npm WARN angular2-notifications@0.4.53 requires a peer of @angular/common@^2.1.2 but none was installed.
  npm WARN angular2-notifications@0.4.53 requires a peer of @angular/platform-browser@^2.1.1 but none was installed.
  npm WARN ng2-select@1.2.0 requires a peer of @angular/common@^2.3.0 but none was installed.
  npm WARN ng2-select@1.2.0 requires a peer of @angular/core@^2.3.0 but none was installed.
  npm WARN angular-2-dropdown-multiselect@1.3.2 requires a peer of tslib@^1.6.1 but none was installed.
  npm WARN The package @types/datatables.net is included as both a dev and production dependency.
  </code></pre>
  
  <p>btw im using <strong>windows</strong>. </p>