rlidwka / sinopia

Private npm repository server
5.51k stars 655 forks source link

Fetching package based on authenticated url in package.json #428

Open mlarsson opened 8 years ago

mlarsson commented 8 years ago

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

meriturva commented 8 years ago

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/

Diokuz commented 7 years ago

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