request / request-promise

The simplified HTTP request client 'request' with Promise support. Powered by Bluebird.
ISC License
4.77k stars 297 forks source link

Installing latest version is throwing error because of Bluebird package update. #330

Open ernitinjain opened 4 years ago

ernitinjain commented 4 years ago

I am installing latest version request-promise@4.2.4: When I see npm list I see below (Notice invalid)

+-- request-promise@4.2.4 invalid | +-- bluebird@3.7.0 | +-- request-promise-core@1.1.2 extraneous | +-- stealthy-require@1.1.1 extraneous | `-- tough-cookie@2.4.3

If I reinstall bluebird@3.5.5 it works fine.

Getting below error:

WARNING in ./node_modules/bluebird/js/release/util.js Module not found: Error: Can't resolve 'async_hooks' in '\node_modules\bluebird\js\release' @ ./node_modules/bluebird/js/release/util.js 410:18-40 @ ./node_modules/bluebird/js/release/using.js @ ./node_modules/bluebird/js/release/promise.js @ ./node_modules/bluebird/js/release/bluebird.js @ ./node_modules/request-promise/lib/rp.js @ ./server.ts

ERROR in ./node_modules/bluebird/js/release/promise.js Module not found: Error: Can't resolve 'async_hooks' in node_modules\bluebird\js\release' @ ./node_modules/bluebird/js/release/promise.js 34:4-26 @ ./node_modules/bluebird/js/release/bluebird.js @ ./node_modules/request-promise/lib/rp.js @ ./server.ts

Please help.

zeetabit commented 4 years ago

same problem

nikhilzac95 commented 3 years ago

any updates on this?