Reputation: 1
How can i include private npm package as my dependency module in Twilio functions. I have a node module in AWS CodeArtifcate which requires npm run co:login aws codeartifact login --tool npm --repository {REPO_NAME} --domain {DOMAIN_NAME}
While i include a private module i am getting
Some dependencies could not be validated. Failed to find the @scope/module_name package.
Upvotes: 0
Views: 165
Reputation: 73029
Twilio developer evangelist here.
We do not currently have a way of connecting npm installs to private registries which is leading to your error message.
The current solution for including private code would be to use private assets and load the dependency using require(Runtime.getAssets()[PATH])
.
Upvotes: 1