vscode_deno
vscode_deno copied to clipboard
Cannot import npm specifier modules due to firewall
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
- Connect to a corporate VPN which blocks npm
- Setup an Artifactory proxy
- 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
Versions
vscode: 1.67.2
deno: 1.32.4
extension: v3.17.0