HerringtonDarkholme / typescript-repl

An upgraded TypeScript REPL
210 stars 16 forks source link

tsun fails to install due to UNMET PEER DEPENDENCY typescript@>=2.0.0 #28

Closed Zephilim closed 7 years ago

Zephilim commented 7 years ago

I am running a version of Typescript that is > 2.0.0, so this error message is incorrect and probably masking a different problem.

Nemesis:dist Nephilim$ npm install -g tsun 
/usr/local/bin/tsun -> /usr/local/lib/node_modules/tsun/bin/tsun
/usr/local/lib
├─┬ tsun@0.3.8 
│ ├── @types/node@6.0.85 
│ ├── colors@1.1.2 
│ ├── diff@2.2.3 
│ ├─┬ node-color-readline@1.0.1 
│ │ ├── ansi@0.3.1 
│ │ └─┬ chalk@1.1.3 
│ │   ├── ansi-styles@2.2.1 
│ │   ├── escape-string-regexp@1.0.5 
│ │   ├─┬ has-ansi@2.0.0 
│ │   │ └── ansi-regex@2.1.1 
│ │   ├── strip-ansi@3.0.1 
│ │   └── supports-color@2.0.0 
│ ├─┬ optimist@0.6.1 
│ │ ├── minimist@0.0.10 
│ │ └── wordwrap@0.0.3 
│ ├─┬ temp@0.8.3 
│ │ ├── os-tmpdir@1.0.2 
│ │ └── rimraf@2.2.8 
│ └── tslib@1.7.1 
└── UNMET PEER DEPENDENCY typescript@>=2.0.0

npm WARN tsun@0.3.8 requires a peer of typescript@>=2.0.0 but none was installed

According to tsc, my version of typescript is 2.4.1:

Nemesis:dist Nephilim$ tsc -v
Version 2.4.1

... but npm list shows a different version (2.3.4):

Nemesis:dist Nephilim$ npm list typescript
angular-reddit@0.0.0 /Users/Nephilim/dev/learna2/angular-reddit
└── typescript@2.3.4

This is not an ignorable error, as the tsun interpreter fails to process commands, giving errors like "Cannot find type definition file for 'jasmine'". The googlesphere is not presenting answers, so any help here would be appreciated. Thanks.

HerringtonDarkholme commented 7 years ago

See #25