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

npm install convict ignores registry settings #180

Closed
sebradloff opened this issue Jan 31, 2017 · 3 comments
Closed

npm install convict ignores registry settings #180

sebradloff opened this issue Jan 31, 2017 · 3 comments

Comments

@sebradloff
Copy link

We are trying to install convict in a proxy environment.
We have our .npmrc has registry settings like so:
registry = "http://artifactory/" @npm:registry = "http://artifactory/"

For some reason the following packages are not being resolved through artifactory but are trying to resolve to the npmjs.org.
31-Jan-2017 13:54:04 npm ERR! fetch failed https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz 31-Jan-2017 13:54:04 npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 31-Jan-2017 13:54:04 npm ERR! fetch failed https://registry.npmjs.org/json5/-/json5-0.5.1.tgz 31-Jan-2017 13:54:04 npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 31-Jan-2017 13:54:04 npm ERR! fetch failed https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz 31-Jan-2017 13:54:04 npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 31-Jan-2017 13:54:04 npm ERR! fetch failed https://registry.npmjs.org/moment/-/moment-2.17.1.tgz 31-Jan-2017 13:54:04 npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 31-Jan-2017 13:54:04 npm ERR! fetch failed https://registry.npmjs.org/varify/-/varify-0.1.1.tgz 31-Jan-2017 13:54:04 npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 31-Jan-2017 13:54:04 npm ERR! fetch failed https://registry.npmjs.org/validator/-/validator-6.2.0.tgz
We have in fact confirmed that these logs do come from installing convict specifically by logging into our environment servers and running npm install convict, while other packages resolve through artifactory.

Is there a strange postinstall step that convict is trying to do or a way to force convict to resolve those dependencies from artifactory?

@madarche
Copy link
Collaborator

madarche commented Jan 31, 2017

Hello @sebradloff . Tanks for your interest in Convict. The package.json file doesn't reference any registry, but the npm-shrinkwrap.json file does! Check its content. If you can find a way to generate an npm-shrinkwrap.json file compatible with any registry/proxy please let us know!

@sebradloff
Copy link
Author

Thanks @madarche for the response! We might end up looking into cloning down convict and editing the shrinkwrapped registry. By any chance do you know if convict can be used client side, using webpack and not gulp && browserify?

@madarche
Copy link
Collaborator

@sebradloff it used to work, but it never has been a goal for Convict, see #47

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

2 participants