Skip to main content

Questions tagged [npm-private-modules]

For questions about creating, publishing, and consuming "private" NPM modules/packages.

npm-private-modules
Filter by
Sorted by
Tagged with
389 votes
16 answers
275k views

How to install a private NPM module without my own registry?

I've taken some shared code and put it in an NPM module, one I don't want to upload to the central registry. The question is, how do I install it from other projects? The obvious way is probably to ...
futlib's user avatar
  • 8,368
37 votes
1 answer
62k views

Globally configure NPM with a token registry to a specific scope (@organisation)

I want to globally setup an NPM registry for a specific scope to be used with a specific token. I know that I can use : $ npm login --scope=@organisation And I can also write a ~/.npmrc with : //...
Yves M.'s user avatar
  • 30.6k
28 votes
3 answers
41k views

Define private registry in package.json

We have a private npm repository based on Sinopia What should I define in package.json that some packages will be installed from Synopia rather then from global npm repository? If I install it ...
Anatoly's user avatar
  • 5,202
27 votes
7 answers
45k views

docker build + private NPM (+ private docker hub)

I have an application which runs in a Docker container. It requires some private modules from the company's private NPM registry (Sinopia), and accessing these requires user authentication. The ...
GTF's user avatar
  • 8,255
4 votes
2 answers
2k views

Authenticate npm private registry in docker

We're publishing scoped js packages to a private registry (managed by us using Verdaccio). It means that in our production environment, we need to authenticate to our private registry to use yarn ...
mbesson's user avatar
  • 721
2 votes
4 answers
4k views

Installing a private package from Gitlab with Yarn

I have a private npm package that is published to the Gitlab Package Registry using a Gitlab CI pipeline. I want to install this package in a project using yarn. Following the documentation helped me ...
uiguig's user avatar
  • 61
1 vote
1 answer
122 views

Installing private NPM module over GIT, and having it update?

I looked at this answer, which shows you how to install npm modules from private git (sub)folders. This works correctly for me when I do: npm install git+ssh://[email protected]:myaccount/myprivate.git, ...
Mike K.'s user avatar
  • 598
1 vote
2 answers
118 views

Unable to install sub npm dependencies for a pvt npm module

I have an npm private repo through sinopia I have published an app in this. It is a full end-to-end application using Angular2 on the UI side. It has its own dependencies mentioned in package.json ...
arjun's user avatar
  • 11
1 vote
1 answer
1k views

npm private modules error

I've couple of private modules that are not on the npm site and I'd like to use them in my application but running in couple of issues while uploading at Elasticbeanstalk. (Elastic beanstalk runs it's ...
user2727195's user avatar
  • 7,260
1 vote
0 answers
394 views

Unable to resolve dependency for npm private module in node js

I have created a private module in node and published it to the nexus repository. The private module is using 'cryptr' module for encryption. When I install the private module to my application and ...
shyama moneymohan's user avatar
0 votes
1 answer
24 views

How to setup npm for private registry

I have company managed private npm registry (in nexus) secured with ssl cert. I can access it through browser, also with curl with my personal cert. For example this is working, I can get a package ...
l2ysho's user avatar
  • 2,903
0 votes
0 answers
6 views

How can I give automatic public access to my clients with an api using npm private package service?

I want to automatically grant access to my clients using the npm private package system. Does npm private package subscription give me an API to do this? If not, is there another way to do this? Is it ...
Ersin Güvenç's user avatar
0 votes
0 answers
872 views

Building React application using Azure DevOps, package-lock.json and private npm registries

We have a React application that builds via npm on Azure DevOps. For the time being I've excluded our package-lock.json from our repository because a few of the packages we use come from private npm ...
user1015196's user avatar
0 votes
1 answer
1k views

Use git repository as private NPM registry

Want to use git repository as a private npm registry to publish my own npm packages. I have tried with the publishConfig and npm config set registry <>. When I am setting the npm registry with ...
Pravin Shinde's user avatar
0 votes
1 answer
301 views

NPM Private Modules: How can I install my private modules on a AWS Beanstalk instance?

NPM Private Modules look great, but I'm not sure how to install them on an AWS Beanstalk instance. Is there any literature published on this? Also, on the default Node.js configuration Beanstalk ...
ac360's user avatar
  • 7,815
-1 votes
1 answer
199 views

Is it a good idea to use NPM to upload some packages of a commercial project on it?

I am following a Microservices course that creates a free NMP account and pushes a package he writes through the course into it and imports this package in other related files of the application like ...
GoodMan's user avatar
  • 600