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

239
Visualizações
Unable to publish scoped NPM package on internal Artifactory

i am trying to publish a simple (there is only a js file inside) scoped NPM package on my company's Artifactory. I followed all the documentation available both on the NPM website and on the Artifactory repository page, but i cannot make it work properly.

This is the package.json content:

{
  "name": "@mycompany/mypackagename",
  "version": "1.0.0",
  "description": "foo",
  "private": false,
  "main": "main.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git@mygit"
  },
  "author": "myself",
  "license": "ISC"
}

And, following the repository set me up section on Artifactory, this is my .npmrc

@mycompany:registry=https://artifactory.company/artifactory/api/npm/repository/
//artifactory.company/artifactory/api/npm/:_password=BASE64PWD
//artifactory.company/artifactory/api/npm/:username=username
//artifactory.company/artifactory/api/npm/:email=email
//artifactory.company/artifactory/api/npm/:always-auth=true

I then create the package by running this command:

npm pack

and publish it by running the command:

npm publish created-package.tgz

That returns NO errors/warnings at all, also in the verbose version. But the package is not available at all in the Artifactory. Fun fact, if i publish this as not scoped package, everything is fine.

Do you have any suggestion on how i can solve this? Thanks.

about 4 years ago · Juan Pablo Isaza
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