Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!