InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

npm install on a fresh dev machine fails

Open rodius opened this issue 10 years ago • 0 comments

npm install on a fresh dev machine fails

Expected Behavior

  1. Clone InversifyJS master repo.
  2. run npm install
  3. no errors displayed in console

Current Behavior

at step #3 I get

[15:17:11] Starting 'build-source'... src\interfaces\bindings\provider.d.ts(4,9): error TS2304: Cannot find name 'Prom ise'.

Possible Solution

TypeScript definition, typings package, is missing. .travis.yml file suggest that typings package is required.

solution: add the command to the preinstall section of package.json

Context

Trying to setup th edev. environment for InversifyJS contribution.

Your Environment

  • Version used:
  • node - v4.4.0, npm - 3.8.1
  • Win 8 x64

rodius avatar Mar 11 '16 15:03 rodius