jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.
MIT License
1.53k stars 22 forks source link

Error on run #1

Closed pixelkritzel closed 7 years ago

pixelkritzel commented 7 years ago

Tried to use it in a project of mine ...

~/project$ typesync --dry                                                                                                                                         
~/.nvm/versions/node/v6.10.0/lib/node_modules/typesync/lib/package-json-file-service.js:7
var existsAsync = util.promisify(fs.exists);
                       ^

TypeError: util.promisify is not a function
    at Object.<anonymous> (~/.nvm/versions/node/v6.10.0/lib/node_modules/typesync/lib/package-json-file-service.js:7:24)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (~/.nvm/versions/node/v6.10.0/lib/node_modules/typesync/lib/cli.js:10:35)
    at Module._compile (module.js:570:32)
jeffijoe commented 7 years ago

Ah, my bad! Node version might be a bit too high. ~What version are you on?~ Duh, your log gives it away.

pixelkritzel commented 7 years ago

6.10

jeffijoe commented 7 years ago

A fix will be published shortly, thanks for bringing this up!

jeffijoe commented 7 years ago

Released as 0.1.1, thanks for reporting!

image