All Questions
20 questions
1
vote
1
answer
181
views
axios-curlirize npm not printing proxy in console log
I am using axios and axios-curlirize npm libraries in my code. It is working for all API calls. But one of my API is using a proxy, when I hit that API axios-curlirize package prints curl request for ...
0
votes
4
answers
9k
views
Unable to install latest version of nodejs. I try to install nodejs 17.x
I m trying to install nodejs 17.x but I end up installing nodejs 10.19. | OS : Ubuntu 20.04.4 LTS x86_64
| shell : fish shell
plz help... I need to install latest version of npm for my project but ...
0
votes
1
answer
150
views
Colors for terminal with curl in docker container
I have a very simple Node.js app:
import terminalImage from 'terminal-image';
import express from 'express';
const app = express();
app.post("/", async (req, res) => {
res.send(...
0
votes
1
answer
1k
views
What is the advantage to installing nvm from Git instead of curl or wget?
You can install nvm using
curl: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
wget: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
...
1
vote
3
answers
23k
views
How to install version 12 of nodejs
I am trying to install version 12 of nodejs with command
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash
but still getting version 8 of nodejs and also npm is not installed
3
votes
1
answer
472
views
why should we avoid installing Node.js with apt-get on Ubuntu?
why should we avoid installing Node.js with apt-get on Ubuntu? And, how does using curl and the nodejs PPA solve the problem? (Hint: It has got to do with being able to install npm modules globally. ...
0
votes
1
answer
408
views
Installation error - Protocol "https" not supported or disabled in libcurl
I tried to install node-parquet (https://www.npmjs.com/package/node-parquet) on RHEL EC2 with following commands:
git clone https://github.com/mvertes/node-parquet.git
cd node-parquet
git submodule ...
0
votes
1
answer
512
views
npm cannot install from registry.npmjs.org
Ok, I'm getting this response when i do:
npm search rollup
npm ERR! pna.nextTick is not a function
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, statusCode=503
...
-1
votes
1
answer
33
views
What's the best node module for making cURL requests?
Im looking for a node module to make a request. I see multiple different options that all seem pretty good, is there one that is considered the best, thanks.
0
votes
0
answers
321
views
How to load url from terminal in nodejs
When I execute my app, I need to manually enter url in browser and it redirects via proxy to target url.
var express = require('express');
var proxy = require('http-proxy-middleware');
var app = ...
0
votes
0
answers
551
views
curl command in node using npm request
I want to make a post curl command with npm request
curl -XPOST -H 'Authorization: Basic Random key' -H 'On-Behalf-Of: user_ID' -H "Content-type: application/json" -d '{"first_name" : "first", "...
0
votes
2
answers
1k
views
Convert PHP CURL to NPM CURL
I am currently attempting to make a CURL request using node.
I have the following CURL request in PHP:-
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.website.com');
curl_setopt($ch, ...
1
vote
1
answer
689
views
Convert CURL command to NPM request call
I have successfully called the Watson Speech-To-Text API using the prescribed curl approach shown here. I used the child_process node module to invoke Curl from my node script.
I am trying to ...
-1
votes
1
answer
620
views
I can't install npm after using curl to install nodejs 6.x
I was trying to install nodejs 5.x on my Elementary OS freya computer. I followed this link https://nodejs.org/en/download/package-manager/ but I forgot to change 6.x to 5.x on this command:
curl -...
8
votes
5
answers
45k
views
NPM install failing with 502 error
This is a rather obscure issue. I have an Angular app that will be running through Codeship for CI. However, when it comes time to run npm install on the Codeship box, npm gives back
-npm ERR! fetch ...