admin管理员组文章数量:1317894
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.
本文标签: javascriptnpm err code 1 when installing request module to be used in electron appStack Overflow
版权声明:本文标题:javascript - npm err! code 1 when installing request module to be used in electron app - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742034365a2417057.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论