Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird error while running david on babbel repository #109

Open
satazor opened this issue May 13, 2016 · 1 comment
Open

Weird error while running david on babbel repository #109

satazor opened this issue May 13, 2016 · 1 comment

Comments

@satazor
Copy link

satazor commented May 13, 2016

git clone https://github.com/moooji/babbel.git && cd babbel && david

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: Failed to replace env in config: ${NPM_TOKEN}
    at /usr/local/lib/node_modules/david/node_modules/npm/lib/config/core.js:417:13
    at String.replace (native)
    at envReplace (/usr/local/lib/node_modules/david/node_modules/npm/lib/config/core.js:413:12)
    at parseField (/usr/local/lib/node_modules/david/node_modules/npm/lib/config/core.js:391:7)
    at /usr/local/lib/node_modules/david/node_modules/npm/lib/config/core.js:334:17
    at Array.forEach (native)
    at Conf.add (/usr/local/lib/node_modules/david/node_modules/npm/lib/config/core.js:333:23)
    at ConfigChain.addString (/usr/local/lib/node_modules/david/node_modules/npm/node_modules/config-chain/index.js:244:8)
    at Conf.<anonymous> (/usr/local/lib/node_modules/david/node_modules/npm/lib/config/core.js:321:10)
    at /usr/local/lib/node_modules/david/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
@satazor
Copy link
Author

satazor commented May 14, 2016

I'm getting this error on a couple of modules. After investigation, it seems that these repositories have a .npmrc file with a custom registry setting that expect NPM_TOKEN env var.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant