Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.3K
Visualizações
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 package.json to install the dependency from my private repository.

However, the file seems to have no effect at all and not even recognized as when running npm install fails and returns an error for not finding my package on npm registry (which was expected). Is there something more i have to do other than simply creating .npmrc file in the root of the project?

My goal us to be able to push the project with the correct configuration so that every who has access to the package and project repo can simply pull the project and be able to install and use the private package.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Adding the following line in package.json of the angular project solves the problem:

"package-name": "url/of/package/repo"

But, I want to change the package scope and to be able to address it using @SCOPE/xxx:registry=......

*Its a private package and it is not published.

Edit: I simply had a typo. The following line in the .npmrc file worked:

@SCOPE:registry=https://....

The xxx part was not needed. Thanks to the gitlab package registry documentation.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda