jfrog-cli icon indicating copy to clipboard operation
jfrog-cli copied to clipboard

JF NPM Tag description - Cannot tag a npm package using JF CLI

Open elumalaigjfrog opened this issue 1 year ago • 2 comments

Query is does jf cli support all npm commands.

jf npm publish works using JF CLI

but jf npm dist-tag add package version tag doesnt work.

Steps to reproduce

1.) Configure the JF CLI 2.) Configure the npm package integration with JF CLI using jf npm-config 3.) Create a npm package and publish using jf npm publish npm init jf npm publish 4.) adding a tag using jf npm dist-tag which is available under jf cli commands doesnt work and throws the error message

#root npmjfclitesting % jf npm dist-tag add [email protected] alpha { "error": { "code": "E404", "summary": "Not Found - GET http://localhost:8081/artifactory/api/npm/npm-remote/-/package/npmjfclitesting/dist-tags - not_found", "detail": "\n '[email protected]' is not in this registry.\n\nNote that you can also install from a\ntarball, folder, http url, or git url." } } 15:06:38 [🚨Error] error while running '/opt/homebrew/opt/node@18/bin/npm dist-tag add [email protected] alpha': npm ERR! code E404 npm ERR! 404 Not Found - GET http://localhost:8081/artifactory/api/npm/npm-remote/-/package/npmjfclitesting/dist-tags - not_found npm ERR! 404 npm ERR! 404 '[email protected]' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: /Users/elumalaig/.npm/_logs/2023-11-15T09_36_36_909Z-debug-0.log exit status 1

but npm tag works:

root npmjfclitesting % npm dist-tag add [email protected] alpha +alpha: [email protected] root npmjfclitesting % root npmjfclitesting % root npmjfclitesting % npm dist-tag latest: 1.0.0

also does jf cli support all the npm commands available.

root npmjfclitesting % jf npm npm

Usage:

npm install install all the dependencies in your project npm install add the dependency to your project npm test run this project's tests npm run run the script named npm -h quick help on npm -l display usage info for all commands npm help search for help on npm help npm more involved overview

All commands:

**access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, search,
set, shrinkwrap, star, stars, start, stop, team, test,
token, uninstall, unpublish, unstar, update, version, view,
whoami**

elumalaigjfrog avatar Nov 17 '23 09:11 elumalaigjfrog

Be aware that npm publish --tag <my_tag> is also not working. As the --tag option is ignored there.

steven-aerts avatar Jan 23 '24 12:01 steven-aerts

Hi @elumalaigjfrog , @steven-aerts ,

We'll soon be assessing the effort required to fix this issue. I'll share an ETA once we have one. Thank you for your patience.

RobiNino avatar Mar 19 '24 15:03 RobiNino