Please find the configured pipeline below
Find Error below from the pipeline
<span>npm notice </span>
<span>npm verb stack Error: This command requires you to be logged in to $NPM_REGISTRY</span>
<span>npm verb stack at Publish.exec (/usr/local/lib/node_modules/npm/lib/commands/publish.js:110:29)</span>
<span>npm verb stack at async module.exports (/usr/local/lib/node_modules/npm/lib/cli-entry.js:61:5)</span>
<span>npm verb cwd /opt/atlassian/pipelines/agent/build</span>
<span>npm verb Linux 5.15.0-1044-aws</span>
<span>npm verb node v18.18.0</span>
<span>npm verb npm v9.8.1</span>
<span>npm ERR! code ENEEDAUTH</span>
<span>npm ERR! need auth This command requires you to be logged in to $NPM_REGISTRY</span>
<span>npm ERR! need auth You need to authorize this machine using `npm adduser`</span>
<span>npm verb exit 1</span>
<span>npm verb code 1</span>
<span>npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-10-17T08_46_19_082Z-debug-0.log</span>
<span>+ status=1</span>
<span>+ set -e</span>
<span>+ [[ 1 -eq 0 ]]</span>
<span>+ fail 'Failed to publish package "@apollo247/pharma-cart-sevice@1.0.0-alpha16".'</span>
<span>+ echo -e '\e[31m✖ Failed to publish package "@apollo247/pharma-cart-sevice@1.0.0-alpha16".\e[0m'</span>
<span>+ exit 1</span>
@Pranshu hi. Please, check this article.
Regards, Igor
Hi Pranshu and welcome to the community!
The README of the pipe's repo mentions the following:
By default, the pipe publishes to npmjs.com. You can publish to any other registry by adding a publishConfig.registry key in your package.json. See npm documentation for more details.
Are you publishing to a registry other than https://npmjs.com/? If so, have you configured the publishConfig.registry key in your package.json?
Kind regards,Theodora
Yes, I'm publishing to a registry other than npmjs and some had been configured in publishConfig.registry key
It looks like you're new here. Sign in or register to get started.