vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Cannot import npm specifier modules due to firewall

Open justinmchase opened this issue 1 year ago • 0 comments

Describe the bug I cannot configure NPM_CONFIG_REGISTRY in the vscode extension.

https://deno.com/blog/v1.29#custom-registry-support-via-environment-variable

To Reproduce

  1. Connect to a corporate VPN which blocks npm
  2. Setup an Artifactory proxy
  3. Attempt to import something with an npm specifier
import * as express from "npm:express";

Expected behavior

I expect to be able to have this succeed by importing through the proxy.

I would imagine it could be as simple as adding an option npmRegistry to the settings which would set that env variable before invoking deno.

{
  "deno.npmRegistry": "<url>"
}

Screenshots

Screen Shot 2023-04-13 at 9 38 02 AM

Screen Shot 2023-04-13 at 9 37 55 AM

Versions

vscode: 1.67.2 deno: 1.32.4 extension: v3.17.0

justinmchase avatar Apr 13 '23 14:04 justinmchase