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

Claudia does not utilize local .npmrc file #81

Closed
kyeotic opened this issue Nov 8, 2016 · 4 comments
Closed

Claudia does not utilize local .npmrc file #81

kyeotic opened this issue Nov 8, 2016 · 4 comments
Assignees
Labels

Comments

@kyeotic
Copy link

kyeotic commented Nov 8, 2016

  • Expected behaviour:
    claudia create deploys lambda function with a private registry.

  • What actually happens:

packaging files	npm install --production
npm install --production failed.

the npm debug log shows
'@nike/lambda-node-logger' is not in the npm registry.

  • Link to a minimal, executable project that demonstrates the problem:
    I am unable to do this, because the private registry is not externally accessible.

  • Steps to reproduce the problem:
    use a local .npmrc file to link to a private registry

registry=http://artifactory.nike.com/artifactory/api/npm/npm-nike
@nike:registry=http://artifactory.nike.com/artifactory/api/npm/npm-nike/

npm install --production works from the CLI, but somehow claudia invokes it without the .npmrc file, which causes the above error.

@gojko gojko self-assigned this Nov 8, 2016
@gojko gojko added the bug label Nov 8, 2016
@gojko
Copy link
Member

gojko commented Nov 8, 2016

is the .npmrc file in this case in your project directory or somewhere else?

@kyeotic
Copy link
Author

kyeotic commented Nov 8, 2016

It is in the project directory

@gojko
Copy link
Member

gojko commented Nov 8, 2016

OK, i'll fix that soon. Meanwhile, using .npmrc in your user home dir should allow you to work around this problem.

@gojko gojko closed this as completed in f748501 Nov 8, 2016
@gojko
Copy link
Member

gojko commented Nov 9, 2016

this is now available on NPM as version 2.1.3

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

No branches or pull requests

2 participants