sinopia icon indicating copy to clipboard operation
sinopia copied to clipboard

Fetching package based on authenticated url in package.json

Open mlarsson opened this issue 9 years ago • 2 comments

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

mlarsson avatar Oct 26 '16 15:10 mlarsson

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/

meriturva avatar Oct 27 '16 10:10 meriturva

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

Diokuz avatar Jun 12 '17 23:06 Diokuz