Repro Steps
- create a user .npmrc pointing to an alternative package registry
- run "tsp install"
Expected: Respects user .npmrc
Actual: Ignores user .npmrc, tries to fetch from npmjs.org
Also appears to ignore NPM_CONFIG_REGISTRY env var:
% export NPM_CONFIG_REGISTRY=...
% npx tsp install --debug
trace cli.args: CLI args: { _: [ 'install' ], debug: true, pretty: true, '$0': 'tsp' }
Internal compiler error!
File issue at https://github.com/microsoft/typespec
[TypeError: fetch failed] {
[cause]: Error: read ENOTCONN
at TLSWrap.onStreamRead (node:internal/stream_base_commons:216:20) {
errno: -57,
code: 'ENOTCONN',
syscall: 'read'
}
}
Repro Steps
Expected: Respects user
.npmrcActual: Ignores user
.npmrc, tries to fetch from npmjs.orgAlso appears to ignore NPM_CONFIG_REGISTRY env var: