New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin can override the exists pkg #176

fengmk2 opened this Issue Jan 23, 2014 · 0 comments


None yet
1 participant

fengmk2 commented Jan 23, 2014

$ tnpm publish
[WARNING] Command failed: npm http PUT
npm http 403
npm http PUT
npm http 403
npm ERR! publish Failed PUT response 403
npm ERR! Error: no_perms Current user can not publish this module: tair
npm ERR!     at RegClient.<anonymous> (/opt/taobao/install/node.js/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:272:14)
npm ERR!     at Request.self.callback (/opt/taobao/install/node.js/lib/node_modules/npm/node_modules/request/request.js:129:22)
npm ERR!     at Request.EventEmitter.emit (events.js:98:17)
npm ERR!     at Request.<anonymous> (/opt/taobao/install/node.js/lib/node_modules/npm/node_modules/request/request.js:873:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/opt/taobao/install/node.js/lib/node_modules/npm/node_modules/request/request.js:824:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <>
npm ERR! or email it to:
npm ERR!     <>

npm ERR! System Linux 2.6.18-274.3.1.tb443.el5
npm ERR! command "/opt/taobao/install/node.js/bin/node" "/opt/taobao/install/node.js/bin/npm" "publish" "." "--registry="
npm ERR! cwd /home/admin/npm-web/target/npm-web/tmp/1390457484515_suqian.yf_vw7e4tj0
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/admin/npm-web/target/npm-web/tmp/1390457484515_suqian.yf_vw7e4tj0/npm-debug.log
npm ERR! not ok code 0

@ghost ghost assigned fengmk2 Jan 26, 2014

@fengmk2 fengmk2 closed this in 1047e18 Jan 26, 2014

dead-horse added a commit that referenced this issue Jan 26, 2014

Merge pull request #184 from cnpm/admin-role-fix
system admin can add, publish, remove the packages. fixed #176
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment