Employing nvm within the company's network restrictions

Due to the restrictions of the corporate firewall, I am unable to install Node JS via nvm. To work around this, I have decided to utilize Fiddler for proxying and attempted to configure the proxy in nvm with the following command:

nvm proxy , where 8888 represents the proxy port in Fiddler.

Despite executing the nvm proxy command, it still shows "none" and I continue to encounter timeouts when attempting to install the latest version of node.

If you are facing a similar issue, you may find this article helpful: Unable to install node using nvm on windows

Any assistance would be greatly appreciated.

Answer №1

Fix for Windows:

To properly set up the proxy in Windows PowerShell/Command Prompt as Administrator, be sure to run the nvm proxy command with elevated privileges (right click on Windows PowerShell -> Run as administrator). This step is crucial for the proxy to be configured correctly!

nvm proxy http://127.0.0.1:8888   -> to set
nvm proxy                         -> to view current proxy settings
nvm proxy none                    -> to clear proxy configuration

Additional details can be found here: https://github.com/coreybutler/nvm-windows

Instructions for Linux:

1. Open and edit this file

nano ~/.curlrc

2. Insert the following line into the file

proxy = user:psw@host:port

Answer №2

When using Windows, I followed these steps:

I located the file at C:\Users...\your username ...\AppData\Roaming\nvm\settings.txt

Then, I inserted the following line: proxy: user:password@host:port

Answer №3

Configure the environment variables

export HTTP_PROXY=localhost:8888
export HTTPS_PROXY=localhost:8888

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the method for displaying script commands within package.json files?

With a multitude of repositories, each one unique in its setup, I find myself constantly referencing the package.json file to double-check the scripts. "scripts": { "start": "npm run dev" "build:dev": "N ...

Node sharp is unfortunately not capable of converting files to the jpeg format

I rely on a node module known as sharp (https://www.npmjs.com/package/sharp) in my lambda function to effectively convert, crop, and apply a white background to images. Although I am able to handle multiple input formats, it is crucial that the output for ...

Encountering an error when attempting to iterate over an undefined property using an API

I am trying to fetch all classes and their assignments from Google Classroom. I successfully used Google's example code for listing the classes, but had to write my own code for listing the assignments. While the code runs as expected and lists the as ...

Pass on the error to the callback in Node.js

Here is the code snippet in question: User.findById(id, function(err, user) { //blah blah }); The findById method can be found within the User module. Here's a glimpse at its implementation: exports.findById = function(id,callback) { connec ...

There was a void in the supertest request with the application/vnd content type

I'm struggling to send a request body using supertest for a post request. Despite configuring body-parser as suggested in other answers, the issue persists. I've checked solutions that mention misconfiguration of body-parser, but they seem to be ...

Leverage the power of ssh2-promise in NodeJS to run Linux commands on a remote server

When attempting to run the command yum install <package_name> on a remote Linux server using the ssh2-promise package, I encountered an issue where I couldn't retrieve the response from the command for further processing and validation. I' ...

Retrieve x amount of objects from an array using Mongoose and utilize the extracted data to modify another field

Essentially, I am looking to retrieve a specific number of objects from an array and then use that number to update another field within the same query as illustrated below export const publicTaskSchema = new Schema({ likes: { likes: { required: fa ...

Troubleshooting PM2 Error When Starting Node.js Application

Currently, I am attempting to launch a nodejs application that I created on my Windows computer onto my Ubuntu Server 14.04. After installing both nodejs and pm2, I encountered an issue when trying to initialize the pm2 web interface with pm2 web or start ...

Connection to socket.io refused due to ERR_CONNECTION_REFUSED

I am currently attempting to run a Node.js application on my server using SSH. When I run 'node server.js' in the terminal, everything seems to be running correctly: var express = require('express'); var app = express(); var server = a ...

Node 12 PubNub problem encountered

Is anyone experimenting with running the PubNub SDK in Node 12.x? I noticed on their documentation that it currently only supports up to node 8. Link - Has there been any news about potential support for version 12 in the near future or any workarounds av ...

Troubleshoot import issues related to third-party dependencies (specifically `react-hook-form`) within the Vite library framework

Currently, I am in the process of creating a custom UI library using Vite that acts as a simple wrapper for ShadCN Uis components. While everything works smoothly when utilizing the library within pages router components in a couple of NextJS apps, import ...

Challenges with Comparing Dates in MongoDB

I am currently using Mongoose to retrieve data based on a specific date from my database. Specifically, I am trying to fetch any account that has not been accessed for more than an hour. However, when executing the query below, I am not receiving any resu ...

Tips on excluding null or empty values when writing to JSON with NodeJS

When saving the following content to a JSON file, I want to exclude any fields with a value of null or blank. Specifically, I do not want to include productPrice and productRating fields in the JSON file. Since I am not very familiar with NodeJS, can someo ...

While running a Conda command through a Node.js script with the use of PM2, I encountered an error stating "/bin/sh: 1: conda: not

Overview In the production environment, I am utilizing pm2 to run a nodejs server. The server executes a javascript file that triggers a python script using the conda run method. Unfortunately, an error occurs with the message: /bin/sh: 1: conda: not foun ...

In Jenkins, there do not exist any configurations specifically for NodeJS installations

I've been struggling with this issue for a while now and haven't been able to find a solution online. Using Jenkins as my CI tool and Git as the source of code. The build trigger is set to another build stability. The plugin manager indicates th ...

I am experiencing difficulty executing the command "sudo npm install --save firebase-admin" at this time

I encountered an issue while trying to execute sudo npm install --save firebase-admin in the terminal. The error message that I received is as follows: npm WARN package.json <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7714 ...

What steps should I take to distribute files for an npm package publication?

I am looking to release an npm package that includes both my source files and distribution files. Within my GitHub repository, I have a src folder containing JavaScript source code. The build process generates a dist folder which holds the distribution fil ...

Steps to remove a package from the npm registry

Is it feasible to eliminate or erase a complete module from the npm registry? Please be aware that using npm -f unpublish does not permit the deletion of packages older than 24 hours. ...

Direct back to the current page post deleting entry from mongodb

After removing data from MongoDB, how can I redirect to the same view (handlebar)? I tried using res.render, but it shows that the website cannot be reached. Thank you for your assistance. Controller Logic var express = require('express'); va ...

Combining input streams using node.js and ffmpeg

Currently, I'm in the process of developing a basic and straightforward Video-Web-Chat platform. My approach involves utilizing the getUserMedia API call on the client side to capture webcam data and transmit it as data-blob to my server. My plan is ...