npm err! code 1 when installing request module to be used in electron app

12,480

This is the solution to my problem with installing request module. It looks like the request module has to be included inside of the package.json dependencies.

Here is mine.

"dependencies": {
"request": "latest",
"cheerio": "latest"
} 

Once I did this the install went through.

Share:
12,480
Nb_me
Author by

Nb_me

Updated on July 23, 2022

Comments

  • Nb_me
    Nb_me almost 2 years

    When trying to install request using 'npm install request' I get an 'npm err! code 1'. I don't understand what this means and I can't find an explanation. What is it and how can I install the request module?

    I don't have much experience with electron. It may be that I may have done something wrong or I'm missing a step.

    It is for a web scraper. The request(URL, function (error, response, html) will not work without the request module

    Can someone please give me some directions on how to make this work.

    Also I using a windows x64 bit machine if that helps.

    Thanks

    ________________________________________________________________________________

    This what I get when I run the 'npm install request'.

    [email protected] C:\User\myName\Desktop\electnode

    `--(empty)

    npm Warn [email protected] no description

    npm Warn [email protected] no repository field;

    npm Err! code 1

  • AlleyOOP
    AlleyOOP almost 6 years
    a simple solution to a ridiculous problem
  • Neerali Acharya
    Neerali Acharya over 5 years
    Great. Worked for me