How to get and install a transparent npm proxy server for a Visual Studio 2015 ASP.net 5 project

In packages in my project.jsonused node package manager. I am adding a new package through nugetto my Visual Studio 2015 ASP.NET 5Beta 8 project .

When I'm on my home internet, I can get packages to download. However, when I am in the office, the following error appears on my console if I add a new package:

PATH =. \ Node_modules.bin; C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External;% PATH%; C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ gitC: \ Users \ USERNAME.dnx \ runtimes \ dnx-clr-win-x86.1.0.0- beta8 \ bin \ dnx.exe "C: \ Users \ USERNAME.dnx \ runtimes \ dnx-clr-win-x86. 1.0.0-beta8 \ bin \ lib \ Microsoft.Dnx.Tooling \ Microsoft.Dnx.Tooling.dll "restore" C: \ PROJFOLDER \ PROJNAME "-f" C: \ Program Files (x86) \ Microsoft Web Tools \ DNU "Microsoft.NET Development Utility Clr-x86-1.0.0-beta8-15858

GET https://www.nuget.org/api/v2/FindPackagesById()?id= 'AutoMapper' Error: FindPackagesById: AutoMapper An error occurred while sending the request.

In Visual Studio 2015 Solution Explorer:

enter image description here

I get:

nuget , npm, , , , npm

GitHub. , , - Windows .

Internet Explorer.

enter image description here

:

  • -, ?

  • , . dnx.config, .

  • , . , ?

+4
1

Internet Explorer, machine.config, C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config

<system.net>
    <defaultProxy useDefaultCredentials="true" enabled="true">
        <proxy usesystemdefault="True"/>
    </defaultProxy>
</system.net>

, .

+6

Source: https://habr.com/ru/post/1613338/


All Articles