ShyykoSerhiy / skyweb

Unofficial Skype API for nodejs via 'Skype (HTTP)' protocol.
MIT License
193 stars 44 forks source link

Error when install #72

Closed tuanmbs closed 6 years ago

tuanmbs commented 6 years ago

Hi, When i install skypeweb, i have a error. My log:

npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated. npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only. npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information.

skyweb@0.4.1 prepublish F:\MBS\Gekko\skypebot\skyweb tsc

src/login.ts(33,47): error TS2345: Argument of type '(previousValue: Promise<{}>, currentValue: any) => Promise' is not assignable to parameter of type '(previousValue: Promise | ((skypeAccount: SkypeAccount, resolve: any, reject: any) ...'. Types of parameters 'previousValue' and 'previousValue' are incompatible. Type 'Promise | ((skypeAccount: SkypeAccount, resolve: any, reject: any) => void)' is not assignable to type 'Promise<{}>'. Type '(skypeAccount: SkypeAccount, resolve: any, reject: any) => void' is not assignable to type 'Promise<{}>'. Property 'then' is missing in type '(skypeAccount: SkypeAccount, resolve: any, reject: any) => void'. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! skyweb@0.4.1 prepublish: tsc npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the skyweb@0.4.1 prepublish script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\tuan.nguyenhuu.TSC\AppData\Roaming\npm-cache_logs\2018-03-07T03_55_44_592Z-debug.log

phillipadsmith commented 6 years ago

Any update on this @ShyykoSerhiy? Or way to access a previous version? Possible that releases can be tagged to make that easy?

ShyykoSerhiy commented 6 years ago

fixed in 0.4.2

tuanmbs commented 6 years ago

Ok, thanks