You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The "request" library is not installed automatically anymore. #291
I've got app(node 0.8.28) where i use request-promise in my package.json i've got dependencies: "request": "2.79.0", "request-promise": "4.1.1",.
But i am getting error:
### The "request" library is not installed automatically anymore.
### But required by "request-promise".
###
### npm install request --save
###
at (/home/workspace/node_modules/request-promise/lib/rp.js:21)
at Module._compile (module.js:449)
at Module._extensions..js (module.js:467)
at Module.load (module.js:356)
at Module._load (module.js:312)
at Module.require (module.js:362)
at require (module.js:378)
at (/home/workspace/lib/helpers/pollution.js:1)
at Module._compile (module.js:449)
at Module._extensions..js (module.js:467)
at Module.load (module.js:356)
[D 14:31:44.102Z Application.js:152] ---- Error: Problem running server class. ----
[D 14:31:44.102Z Application.js:153] non_object_property_load
[D 14:31:44.103Z Application.js:154] Cannot read property 'prototype' of undefined
[D 14:31:44.104Z Application.js:155] TypeError: Cannot read property 'prototype' of undefined
at Object.exports.inherits (util.js:538:43)
at Object.<anonymous> (/home/workspace/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/ed-compat.js:25:6)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/home/workspace/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/private-key.js:17:16)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/home/workspace/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/utils.js:25:18)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
This app worked before without problems and nothing was changed on app side. Both request and request-promise exists in node_modules directory
In case anyone else runs into this issue recently via google search, I was encountering it with node@10.16.0, and its working on node@10.16.1 likely due to a fix labled "fix esm load bug"(nodejs/node#25491) in the node changelog
Activity
pradiptabasu commentedon Feb 17, 2019
Hello,
I am facing the same issue.
Can you share your solution or how your are bypassing it ?
analog-nico commentedon Feb 17, 2019
Hey @pradiptabasu , you need to install
requestyourself before you installrequest-promise. See the installation instructions.analog-nico commentedon Feb 18, 2019
@MatthewDtotheG Do you have both libraries added to your
package.json? What donpm ls requestandnpm ls request-promiseoutput?slpixe commentedon Aug 5, 2019
In case anyone else runs into this issue recently via google search, I was encountering it with
node@10.16.0, and its working onnode@10.16.1likely due to a fix labled "fix esm load bug"(nodejs/node#25491) in the node changelogahmadasmandar commentedon Sep 10, 2019
thank you it worked for me..
g4brielklein commentedon Apr 29, 2020
Thanks!