Skip to content

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

Closed

Description

@iwko

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

Activity

  1. pradiptabasu commented on Feb 17, 2019

    @pradiptabasu

    Hello,

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

  2. analog-nico commented on Feb 17, 2019

    @analog-nico
    Member

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

  3. analog-nico commented on Feb 18, 2019

    @analog-nico
    Member

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

  4. slpixe commented on Aug 5, 2019

    @slpixe

    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

  5. ahmadasmandar commented on Sep 10, 2019

    @ahmadasmandar

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

    thank you it worked for me..

  6. g4brielklein commented on Apr 29, 2020

    @g4brielklein

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

    Thanks!

  7. ghost deleted a comment from on Apr 7, 2022
  8. ghost deleted a comment from on Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions