npm err! code 1 when installing request module to be used in electron app
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.
Nb_me
Updated on July 23, 2022Comments
-
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 almost 6 yearsa simple solution to a ridiculous problem
-
Neerali Acharya over 5 yearsGreat. Worked for me