'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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
