Questions tagged [npm-request]

npm-request is a node package designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.

npm-request is a node package designed to be the simplest way possible to make HTTP calls. It supports HTTPS and follows redirects by default.

Useful links

158 questions
-1
votes
2 answers

Sending form in post request using https library

I have to call an api, for which we are using request library. const options = { uri: 'https://abcd.com', method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', …
Divyansh Singh
  • 390
  • 4
  • 16
-1
votes
1 answer

Need to specify order of HTTP request elements in Node.js

I am trying to establish a persistent connection between our node (express.js) server and a vendor server. We are currently using the "request" library, though we can easily move to something else. https://www.npmjs.com/package/request The vendor…
DanG
  • 91
  • 1
  • 9
-1
votes
1 answer

How do you update an array value in JSON

JSON Data: { "role": [ "Jungle", "Mid" ], "total_wins": 0 } This is the request I'm using, using npm request. request({ uri: uri, method: "PATCH", json: { "total_wins": 1, "role":…
Eric Chu
  • 1,649
  • 3
  • 20
  • 26
-1
votes
1 answer

Cannot call the php file from angular2 http post request using node server

I have rest call like below. Its like cross domain. I want to call the php file which is in the same project folder. But I am getting 404 error. I can able to download the file using error link. That means link what I am giving is correct. return…
raj m
  • 1,863
  • 6
  • 21
  • 37
-1
votes
1 answer

Meteor: Can't add package useraccounts:bootstrap - npm.depends error

When I try to add useraccounts:bootstrap to my meteor project, I receive the following error... Error: Can't find npm module 'request'. Did you forget to call 'Npm.depends' in package.js within the 'http' package? What can I do to fix this?
Serks
  • 333
  • 2
  • 21
-2
votes
1 answer

Npm missing script: start-win

Getting the below error log after executing npm run start-win: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli…
Zayidu A
  • 13
  • 2
  • 7
-3
votes
1 answer

i got errors when i try to install a vuetify project via npm

i followed these in the process of installation of a vuetify project: -npm install -g vue-cli -vue init vuetifyjs/webpack my-project here is the result among all errors displayed: -npm ERR! Unexpected end of JSON input while parsing near…
Michel Tchoutang
  • 59
  • 1
  • 1
  • 3
-4
votes
2 answers

I'm having a hard time running a react command

I just updated my npm and got rid of some useless packages, but for some reason, I still am running into some weirdness when trying to run this command kalebamarante$ npm init create-react-app kalebcryptoexchange-app npm ERR! code E404 npm ERR! 404…
1 2 3
10
11