Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "request" library is not installed automatically anymore. #291

Closed
iwko opened this issue Oct 17, 2018 · 6 comments
Closed

The "request" library is not installed automatically anymore. #291

iwko opened this issue Oct 17, 2018 · 6 comments

Comments

@iwko
Copy link

iwko commented Oct 17, 2018

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

@iwko iwko closed this as completed Oct 18, 2018
@pradiptabasu
Copy link

Hello,

I am facing the same issue.
Can you share your solution or how your are bypassing it ?

@analog-nico
Copy link
Member

Hey @pradiptabasu , you need to install request yourself before you install request-promise. See the installation instructions.

@analog-nico
Copy link
Member

@MatthewDtotheG Do you have both libraries added to your package.json? What do npm ls request and npm ls request-promise output?

@slpixe
Copy link

slpixe commented Aug 5, 2019

In case anyone else runs into this issue recently via google search, I was encountering it with [email protected], and its working on [email protected] likely due to a fix labled "fix esm load bug"(nodejs/node#25491) in the node changelog

@ahmadasmandar
Copy link

Hey @pradiptabasu , you need to install request yourself before you install request-promise. See the installation instructions.

thank you it worked for me..

@g4brielklein
Copy link

Hey @pradiptabasu , you need to install request yourself before you install request-promise. See the installation instructions.

Thanks!

@ghost ghost deleted a comment Apr 7, 2022
@ghost ghost deleted a comment Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants