Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

unpublish local package bug #77

Closed
fengmk2 opened this issue Dec 12, 2013 · 2 comments
Closed

unpublish local package bug #77

fengmk2 opened this issue Dec 12, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@fengmk2
Copy link
Member

fengmk2 commented Dec 12, 2013

npm http DELETE http://registry.cnpmjs.org/cnpmjs.org/download/cnpmjs.org-0.1.0.tgz/-rev/59695
npm http 404 http://registry.cnpmjs.org/cnpmjs.org/download/cnpmjs.org-0.1.0.tgz/-rev/59695
npm ERR! 404 'cnpmjs.org' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Darwin 13.0.0
npm ERR! command "/Users/mk2/git/nvm/v0.10.22/bin/node" "/Users/mk2/git/nvm/v0.10.22/bin/npm" "--cache=/Users/mk2/.npm/.cache/cnpm" "--registry=http://registry.cnpmjs.org" "unpublish" "--force"
npm ERR! cwd /Users/mk2/git/cnpmjs.org
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code E404
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/mk2/git/cnpmjs.org/npm-debug.log
npm ERR! not ok code 0

@ghost ghost assigned fengmk2 Dec 12, 2013
@fengmk2
Copy link
Member Author

fengmk2 commented Dec 12, 2013

@dead-horse 这段逻辑有问题, 我先注释掉. 因为在unpublish的时候, 会调用一次show, 然后又被同步了...

//if module not exist in this registry,
    //sync the module backend and return package info from official registry
    if (rows.length === 0) {
      if (!req.session.allowSync) {
        return next();
      }

@dead-horse
Copy link
Member

ok

dead-horse added a commit that referenced this issue Dec 12, 2013
fix publish module logic and disable install sync module. fixed #77
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants