What I Wanted to Do
I tried to uninstall 4 different packages which didn’t give me an error just a warning below:-
- NPM WARN using --force I sure hope you know what you are doing.
What Happened Instead
So I searched for the name of the package i apparently uninstalled on npm and i could not find it publicly which i want but it was still available in the organization i am in @kandy-io. i was expecting the packages to be deleted from the organization and every other place on npm using the command below:
- npm unpublish @scope/package --force
I even tried to delete the packages under the organization team and it couldn’t not delete. I am currently an admin in the organization.
when i try to republish using the command below
- npm publish --access public
i get the ERR output below:
npm ERR! publish Failed PUT 400
npm ERR! code E400
npm ERR! Cannot publish over previously published version “3.3.0”. : @kandy-io/uc-sdk
npm ERR! A complete log of this run can be found in:
npm ERR! /home/circleci/.npm/_logs/2019-03-20T18_12_32_265Z-debug.log
Exited with code 1
this is because that package is still in the organization but i need to republish that version again for the public.
I DONT KNOW WHAT AM DOING WRONG OR HOW TO RESOLVE THIS