C
C
claus_bor2017-11-03 12:04:43
JavaScript
claus_bor, 2017-11-03 12:04:43

How to force a package to be updated?

Hello, I have several packages in my company that we created ourselves. Now they are on bitbucket and you can install them only like this (replaced the company name):

npm install --save  "git+https://nameofmycompanysupport:[email protected]/nameofmycompany/name-of-package.git"

Because of this, we cannot update this package via npm update, and if we just do npm install, then the package will not be updated.
I have two questions:
1) How can I add the ability to upgrade a package?
2) How to add versioning?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leonid Knyazev, 2017-11-03
@amorphis

Publish packages to npmjs .
If you need private packages so that only you can install them, you can use npm Orgs , or install npm Enterprise on your server and use your personalnpm registry

K
Konstantin Kitmanov, 2017-11-03
@k12th

No problem: add tags in the git and install the package as

npm install --save  "git+https://nameofmycompanysupport:[email protected]/nameofmycompany/name-of-package.git#v1.1.0"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question