npm-config

Setting up username and password for npm registry URL

落花浮王杯 提交于 2021-01-28 02:11:43
问题 I am trying to use npm to install a package from url : http://host:80 I did the following: npm config set strict-ssl false npm config set registry "<>" npm --proxy http://host:port install <> (our proxy does not require authentication) When I tired to run above install package command it throws npm ERR! code E401 npm ERR! 401 Authorization Required: @latest When I should I set the username and pwd for registry url.I googled and found that registry url and details are part of .npmrc file.

NPM throws error on “audit fix” - Configured registry is not supported

会有一股神秘感。 提交于 2020-05-17 08:35:05
问题 Since last night i'm getting the following error: npm ERR! code ENOAUDIT npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests. npm ERR! A complete log of this run can be found in: npm ERR! /home/ransinha/.npm/_logs/2018-11-28T18_19_35_432Z-debug.log I have not made any recent changes. https://github.com/verdaccio/verdaccio/issues/689 suggests changeing in config.yaml file. I don't see any config.yaml file in my folder. I'm not using verdaccio

Using npm behind corporate proxy .pac

蓝咒 提交于 2019-12-17 02:17:12
问题 I need to download several packages through npm but our corporate proxy configuration is a .pac file (i'm on windows) I have already tried npm config set proxy http://mydomain\username:password@1.2.3.4:8181/proxy.pac npm config set https-proxy http://mydomain\username:password@1.2.3.4:8181/proxy.pac or npm config set proxy http://1.2.3.4:8181/proxy.pac npm config set https-proxy http://1.2.3.4:8181/proxy.pac but it doesn't work... any suggestion? thanks 回答1: I've just had a very similar

Create proxy server to NPM registry

旧巷老猫 提交于 2019-12-11 15:56:18
问题 I am trying to create my own verion of local-npm I have this simple http server: #!/usr/bin/env node 'use strict'; import http = require('http'); const s = http.createServer(function (clientRequest, clientResponse) { if (clientRequest.url === 'x') { clientResponse.write('retrieve the tarball from local fs'); clientResponse.end(); return; } const proxy = http.request({ hostname: 'https://registry.npmjs.org', port: 80, path: clientRequest.url, method: clientRequest.method }, function (res) {

npm install error/issue

删除回忆录丶 提交于 2019-11-27 08:16:41
问题 I have already set proxy configurations in .npmrc file. Executing the npm install command gives me error as follows" $ npm install npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ECONNRESET npm ERR! network tunneling socket could not be established, statusCode=400 npm ERR! network This is most likely not a problem with npm itself npm ERR!

Using npm behind corporate proxy .pac

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 12:00:16
I need to download several packages through npm but our corporate proxy configuration is a .pac file (i'm on windows) I have already tried npm config set proxy http://mydomain\username:password@1.2.3.4:8181/proxy.pac npm config set https-proxy http://mydomain\username:password@1.2.3.4:8181/proxy.pac or npm config set proxy http://1.2.3.4:8181/proxy.pac npm config set https-proxy http://1.2.3.4:8181/proxy.pac but it doesn't work... any suggestion? thanks Steve Roberts I've just had a very similar problem, where I couldn't get npm to work behind our proxy server. My username is of the form