npm publish fails if _attachments do not exist in the db #4571

Closed
shaneholder opened this Issue Jan 29, 2014 · 1 comment

Projects

None yet

2 participants

@shaneholder

I have a private repository to stash my node code and I tried to publish a module which was several months old and npm publish failed, details can be found in the following gist:

https://gist.github.com/shaneholder/d92f5f84834af8e808db

It looks like the issue is in publish.js, the loop at 126 (npm version 1.3.24) attempts to do an assignment from root to current, if the property does not exist on current the assignment fails. It looks like current is retrieved directly from the repository at line 98.

It seems that if this were an issue for the main npm repository it would be a big problem, but since there doesn't seem to be an outcry I'm guessing it's just with private repositories so possibly not a huge deal.

Thanks,
Shane

@othiym23

Closing as resolved – fixing this was one of the primary purposes of npm 1.4.

@othiym23 othiym23 closed this Sep 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment