nomercy2124N
Denoβ€’2y agoβ€’
2 replies
nomercy2124

Private NPM Registry config with $HOME/.npmrc and project/.npmrc

I'm trying to introduce Deno into my company that use Azure Npm Registry

Something missing with the config below. (That the configuration that work with NPM)

My configuration


deno : 1.44.4
OS : macos 13.2.1

$HOME/.npmrc


//mycompany.com/npm/registry:username=myusername
//mycompany.com/npm/registry:_password=mypassword
//mycompany.com/npm:username=myusername
//mycompany.com/npm:_password=mypassword
//mycompany.com/npm:email=myemail


project/.npmrc


registry=https://mycompany.com/npm/registry
always-auth=true


The problem


According to deno doc we have to change the project/.npmrc or the $HOME/.npmrc like :

@mycompany:registry=http://mycompany.com:8111/
//mycompany.com:8111/:_auth=secretToken


But... We do not use secretToken.

Request


Will deno follow .npmrc convention for private NPM registry ?

I mean implement
username
_password like NPM binary does.

Will deno will handle multiple .npmrc configuration like our ?

Password inside $HOME/.npmrc and registry configuration inside project/.npmrc ?

Thanks for reading.
Was this page helpful?