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
2
votes
0 answers

GitLab can't publish npm package

I am having issues with publishing my npm package to the project gitlab registry. Here is the gitlab-ci.yaml script build_npm_package: stage: build image: node:15.4 script: - yarn install - yarn run pre-publish - cd dist - npm…
A.J
  • 315
  • 4
  • 17
2
votes
0 answers

Attempted import error: 'default' is not exported from '../assertThisInitialized/_index.mjs' - webpack incorrectly imports named imports as default

For some strange reason, Webpack incorrectly attempts to import named imports as default. I noticed the problem when I tried to build my project in a docker container. I got the following error: I also tried building the project directly on my mac…
Innocent
  • 21
  • 3
2
votes
1 answer

How to authenticate azure devops pipeline , so that pipeline can restore yarn packages successfully

My application uses an yarn package which is installed in local after authentication.Registry url is specified in .npmrc file. Now my build pipeline fails, and says "Package restore failed" (Request failed "401 Unauthorized""). How to authenticate…
Deepak Kothari
  • 1,601
  • 24
  • 31
2
votes
1 answer

How to pass inline options when running npx?

Without changing the global npm configuration of the workstation or creating an .npmrc file in the current directory, I want to run an npx package using a private nexus registry. So, is it possible to run npx commands (preferably cross-paltform)…
vahdet
  • 6,357
  • 9
  • 51
  • 106
2
votes
0 answers

How can I manage sub-group access in npm registry

When using npm registry to publish private project, I found that I can't control the access for each scoped package. If I grant an access to an account for the organization, this account will have access to all packages under this organization. Is…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
2
votes
0 answers

Docker container is unable to install NPM packages

Within my docker file, when it comes to installing npm packages, I get the error: npm WARN athena@1.0.0 No description npm WARN athena@1.0.0 No repository field. npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to…
Kayote
  • 14,579
  • 25
  • 85
  • 144
1
vote
1 answer

WEB IDE build - npm ERR! request to https://npm.sap.com

I have an SAP UI5 app that was last changed in 2018. When I pull the repository from Git and try to deploy it to SAPUI5 ABAP repository I am getting errors related to npm: npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR!…
user919789
  • 171
  • 4
  • 7
  • 19
1
vote
0 answers

Understand how NPM works

I have a question about how NPM works. When I install a library globally or on a project, at times node-gyp is used and at other times not for the same library Let me explain, I work in a company with a strict security policy, that is to say that we…
1
vote
1 answer

How do I access a Google Artifact Registry public NPM registry module file from a simple GET request (Not as tar)?

I create an npm registry in Google's Artifact Registry called npm-public. I have a project that, when published, has the following structure... - server.mjs - package.json I publish the arifacts to the server and can install them locally. Next I…
Jackie
  • 21,969
  • 32
  • 147
  • 289
1
vote
1 answer

Can't update private dependencies with dependabot

Context I have a library of private components stored in Bit.dev as my source of truth. To use them I must have a token and the registry information in my .npmrc file and with this token I can install all of my components anywhere I want. /**.npmrc…
Uriel Carneiro
  • 390
  • 3
  • 15
1
vote
1 answer

why does package-lock.json resolve domains of registry to ip

I'm struggling to find out why npm resolve the domain name of my npm registry to hardcode IP in package-lock.json that's a sample: "@poney/common-client": { "version": "1.1.0", "resolved":…
1
vote
0 answers

How to set multiple registries in .npmrc for different repositories with auth

I am currently working on a project and I have to install the dependencies from multiple registries. Public repositories from the default npm registry My own private repositories (scoped) from npm registry using _authToken From nexus repository…
Aleem
  • 93
  • 2
  • 14
1
vote
3 answers

npm install of private npm registry is failing

I have created a private npm registry using gitlab I have the following .npmrc file, which is the same .npmrc file that I used to publish with no issues. I've replaced all company values with…
user3284707
  • 3,033
  • 3
  • 35
  • 69
1
vote
1 answer

Gitlab - npm registry - npm publish - 422 Unprocessable Entity

I am trying to publish a really simple example to our gitlab npm registry but getting an error I have updated the names/projectId/token etc but this is the error. npm ERR! 422 Unprocessable Entity - PUT…
user3284707
  • 3,033
  • 3
  • 35
  • 69
1
vote
1 answer

Fetching all private npm modules from an npmjs user

I'm working on a task to migrate all of our npm modules from npmjs.com. Problem is, all of our modules are stored under an npm user as private packages, and I can't find a way to consume all packages the user owns programmatically. I found many…
Yaron Idan
  • 6,207
  • 5
  • 44
  • 66