christophebe / serp

Google Search SERP Scraper
101 stars 23 forks source link

util.promisify is not a function #3

Closed Seniagin closed 5 years ago

Seniagin commented 6 years ago

/node_modules/serp/index.js:4 const delay = util.promisify(setTimeout); ^ TypeError: util.promisify is not a function

got error after npm install today. Few day's ago it was OK. node v. 7.8.0

Seniagin commented 6 years ago

Found a reason - "promisify" appears in "utils" package only in 8+ versions of node js.

christophebe commented 6 years ago

Yes, the code is migrated to es6+/node 8+ You can use the old version from npm.

goldbergyoni commented 6 years ago

which version works without async/util.promisify (es5)?

christophebe commented 5 years ago

Hello I am back on this project :-) It is probably a too old/unstable version. I advide you to use the latest one.