Questions tagged [npm-registry]

For questions specifically about npm, Inc.’s default public software registry at https://registry.npmjs.org, or any other npm compatible registry.

Reference:

81 questions
4
votes
0 answers

Force npm to use only private registry

We are using npm with a private registry. I know the usage of a private registry is possible by: including it in the .nmprc file (registry=[registry]) as parameter via cli by "npm install --registry==[registry] If resolving the dependencies via…
Limon
  • 194
  • 1
  • 11
4
votes
0 answers

VSCode shows wrong npm package info in package.json

When using the intellisense for package.json the information in there is old/incorrect. For example right now it says the latest version for @angular/core is 10.1.3 when in fact it should be 10.2.0: https://www.npmjs.com/package/@angular/core Is…
Mike Jerred
  • 9,551
  • 5
  • 22
  • 42
4
votes
0 answers

npm package metadata api

npm says we can able to get the metadata of the package, with the public api provided below https://github.com/npm/registry/blob/master/docs/REPLICATE-API.md#get https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get-all but none of…
Shiva Sai
  • 463
  • 4
  • 12
3
votes
1 answer

Environment variables in dependabot.yml?

I'm trying to set up dependabot-standalone to run in a GitLab-CI pipeline in a private instance. It's an npm package and I'm using a private npm registry to fetch my dependencies from. According to the docs, I should set up my registry access data…
Antonio Pérez
  • 6,702
  • 4
  • 36
  • 61
3
votes
1 answer

How to install scoped private npm package from Artifactory in Github Actions

This question includes a specific use-case: I have a private scoped package: @myscope/mypackage It hosted in Artifactory NPM registry: https://company.jfrog.io/artifactory/api/npm/my-npm-registry/ I need to use my credentials to consume it. I want…
baruchiro
  • 5,088
  • 5
  • 44
  • 66
3
votes
1 answer

Adding .npmrc file to Angular project

I seem to be missing a whole step in doing this. I added an .npmrc file in the root of my angular project and added the following line inside it: @example/xxx:registry=ssh/url/of/my/private/repo/in/bitbucket And accordingly added @example/xxx in my…
ilpianoforte
  • 1,180
  • 1
  • 10
  • 28
3
votes
1 answer

Get package dependencies from NPM registry API

Given a package name and version, I want to find out what its dependencies are, ideally using an HTTP request.
Carl Patenaude Poulin
  • 6,238
  • 5
  • 24
  • 46
3
votes
1 answer

Use private npm registry for Google App Engine Standard

For all the other stackoverflow questions, it seems like people are asking either about a private npm git repository or about a different technology stack. I'm pretty sure I can use a private npm registry with GAE Flexible, but I was wondering if it…
3
votes
1 answer

Publish angular library in enterprise artifactory

When i have setup npm repository at enterprise JFrog then following 5 npm repositories have been created: npm-local npm-release local npm-generic-local npm-central npm-central-cache And whenever i am trying to publish angular library by using npm…
Anshita Singh
  • 1,583
  • 1
  • 17
  • 40
3
votes
2 answers

npm install package as master project, not as dependency

I am using npm+node for some simple scripting. Minimal example: I have a node project directory (in which I ran npm init), containing script.js, package(-lock)?.json, and node_modules directory with dependencies. And this script I run from cmdline…
3
votes
1 answer

How to specify project npm registry inside package.json file

I am working on multiple projects at the same time and the node module registry for different projects are not the same. For example, all modules for project A are from http://registroy.foo.com and modules for project B are all from…
XY L
  • 25,431
  • 14
  • 84
  • 143
3
votes
2 answers

Skip install for particular dep

Is there a way to run npm install but skip a particular dependency? Something like: npm install --skip=lodash --skip=rxjs In my case, I have some developer tooling and some dependencies may not actually be in the NPM registry yet, so I want to skip…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
2
votes
1 answer

How to publish NPM package to NPM registry instead of github registry?

I have created an NPM package like so - (https://github.com/fyndreact/nitrozen) I'm able to successfully publish the package on github (https://npm.pkg.github.com/) However, what I want to do is publish it on NPM registry. I'm not able to see the…
2
votes
1 answer

How to install npm package from github registry

I'm not sure how to install (npx) a package from github registry when that package is depending on one or multiple packages from the public npm registry. I tried: npm_config_registry=https://npm.pkg.github.com npx @octopol/development But it fails…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
2
votes
1 answer

Yarn private gitlab registry .tgz not found

I publish a npm package to my private npm registry provided by gitlab. No I try to install the package in another project. The authentication is done via .npmrc which is located in the project…
Markus
  • 1,909
  • 4
  • 26
  • 54