From 296cc203efe1d394dee8907691a2631d295f3190 Mon Sep 17 00:00:00 2001 From: cktang88 Date: Sat, 10 Mar 2018 14:20:04 -0600 Subject: [PATCH] Replace request with needle --- lib/install.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/install.js b/lib/install.js index ddefe67b..4f9352a4 100644 --- a/lib/install.js +++ b/lib/install.js @@ -58,7 +58,7 @@ function download(uri,opts,callback) { } } try { - req = require('request')(requestOpts); + req = require('needle').get(requestOpts.uri, requestOpts); } catch (e) { return callback(e); } diff --git a/package.json b/package.json index 01309aa8..6925535a 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,11 @@ "dependencies": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", + "needle": "^2.2.0", "nopt": "^4.0.1", "npm-packlist": "^1.1.6", "npmlog": "^4.0.2", "rc": "^1.1.7", - "request": "2.83.0", "rimraf": "^2.6.1", "semver": "^5.3.0", "tar": "^4"