Quantcast
Channel: what do lines starting with double-slash '//' mean in a .npmrc? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

what do lines starting with double-slash '//' mean in a .npmrc?

$
0
0

I'd naively assumed that .npmrc lines with double slash ('//') indicate a comment, but that's clearly not the case, because when I delete them, I'm unable to publish to my local registry.

Example:

registry=https://npm.myregistry.io///email=me@mydomain.com//npm.myregistry.io/:_authToken="Pgwb34F123EQdHqE7OoZA=="

If I remove the above // lines, publish results in

npm ERR! code ENEEDAUTHnpm ERR! need auth auth required for publishingnpm ERR! need auth You need to authorize this machine using `npm adduser`

I can't find any reference to this syntax in npmrc documentation or the ini module parser documentation. I'm assuming it has something to do with synthesized properties?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images