When trying to install the 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 the 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 am using a Windows x64 bit
machine if that helps.
Thanks,
This is 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
When trying to install the 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 the 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 am using a Windows x64 bit
machine if that helps.
Thanks,
This is 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
Share
Improve this question
edited Jan 15, 2024 at 14:43
Onur Doğan
2,06811 gold badges33 silver badges59 bronze badges
asked Nov 3, 2016 at 22:10
Nb_meNb_me
2232 gold badges6 silver badges20 bronze badges
26
-
What version of node are you running? My research tells me that running
npm cache clean
might have an effect, but also the node version might too. – ms_nitrogen Commented Nov 3, 2016 at 22:20 - I am running node v6.3.1. Did the npm cache clean and got a whole bunch of 'npm Err!'. I don't know what it means or if that is normal but I tried it. – Nb_me Commented Nov 3, 2016 at 22:42
- That's all the stack trace you got? If not can you post please? – Joaquin Javi Commented Nov 3, 2016 at 22:50
- hi Joaquin Javi, I am no quite sure could you tell me what to look for.... – Nb_me Commented Nov 3, 2016 at 23:19
-
@Nb_me What he's asking for is the entire error message that
npm install request
printed out. – Vadim Macagon Commented Nov 4, 2016 at 0:28
1 Answer
Reset to default 5This 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.