Fetching package based on authenticated url in package.json
Hello,
I have setup a Sinopia server with some users and would like, for one of my project hosted on Heroku, to fetch a package for this server on install. I have tried the following in the package.json file but without success:
"dependencies": {
"<package-name>": "https://<username>:<password>@<host>/<package-name>"
}
Can anybody assist me with this? Also is it possible to add a version string to the above?
Thank you for your help.
Kind regards Morten
I think that you have to configure npmrc file: https://docs.npmjs.com/files/npmrc per project and then use registry/scope filter....for example: http://www.telerik.com/kendo-angular-ui/getting-started/
I have the same problem, but I cant login, because my project is building in docker. So, is there a way npm-style? I mean https://docs.npmjs.com/private-modules/docker-and-private-modules