Skip to content

pre-release is not a dist-tag on <lib> #37

Closed

Description

@dthree

When publishing with lerna, the packages do publish, but NPM takes a dump on me by saying:

prerelease is not a dist-tag on [library]

I'm sure there's just some setting I need to do on my repo to fix this, however your docs should probably mention something on it.


Otherwise, great lib! It's saving my life on this project.

Activity

  1. reopened this on Feb 5, 2016
  2. jasonmit commented on Feb 8, 2016

    @jasonmit

    Ran into this as well. My fix was to tag every package with prerelease but agree that either the docs should mention thing or Handle the error case.

  3. dthree commented on Feb 8, 2016

    @dthree
    Author

    @jasonmit thanks - could you please explain exactly what you did to tag them properly? Can't get over this hump...

  4. dthree commented on Feb 9, 2016

    @dthree
    Author

    Yeah, I have no idea what I'm doing on tags, but honestly they're terribly documented in general. I tried going into each of my packages and doing:

    npm dist-tag add [email protected] prerelease

    However this didn't change anything on this error...

  5. hzoo commented on Feb 9, 2016

    @hzoo
    Contributor

    I think we need more info to debug this one? Not sure where the error is happening

    What were doing is npm publish --tag prerelease for each pacakge,
    npm dist-tag rm " + name + " prerelease, - if the error happens here, then it maybe it failed publishing?
    and then npm dist-tag add " + name + "@" + NEW_VERSION + " stable

  6. jamiebuilds commented on Feb 11, 2016

    @jamiebuilds
    Contributor

    The only thing I can think of is if the initial tagging is failing for some reason.

  7. dthree commented on Feb 11, 2016

    @dthree
    Author

    Yeah, it looks like it. But it's totally silent.

  8. jamiebuilds commented on Feb 12, 2016

    @jamiebuilds
    Contributor

    @dthree We might just have to close this one as cannot reproduce, but I'm going to add better logging for lerna (#49)

  9. dthree commented on Feb 12, 2016

    @dthree
    Author

    okay... question - what If I let you clone the git repo It's happening on?

  10. jamiebuilds commented on Feb 12, 2016

    @jamiebuilds
    Contributor

    If you can give me a reproduction case I can try to diagnose this. However you want to do that is fine, I have a private npm server so I can test out publishing to it

  11. dthree commented on Feb 12, 2016

    @dthree
    Author

    Okay, that would be really amazing!

    I temporary threw up the project here on Github (haven't released it yet, so keeping it off Github generally for now).

    You can just git clone this, and:

    1. Update ./packages/template.package.json to match your private NPM repos.
    2. Run gulp to replicate those package.json files to each sub package.
    3. Go nuts with lerna - it should be reproducible right there.

    Thanks a million!

  12. ph101pp commented on Apr 3, 2016

    @ph101pp

    Okay, I ran into the same problem and I think I can reproduce it:

    The error happens when the folder name in packages/ doesn't match the package name in package.json

    So a package in folder packages/core/ with { "name" : "library-core" } in package.json will produce the error.

  13. cpsubrian commented on Apr 4, 2016

    @cpsubrian

    Ran into this also. I'm trying to manage a collection of namespaced modules so I can't name the folder the same as the package because of @org in the package name. AKA @org/my-module is the npm package name but the folder is my-module.

  14. cpsubrian commented on Apr 4, 2016

    @cpsubrian

    My package successfully published with master, so .. for me this issue is already resolved.

  15. hzoo commented on Jun 13, 2016

    @hzoo
    Contributor

    Alright cool closing for now

  16. dtothefp commented on Oct 5, 2016

    @dtothefp

    @cpsubrian I'm running into the same problem of an @org name and getting the error

    Errored while running PublishCommand.execute
    Error: Command failed: npm dist-tag add @org/<my_package>@0.2.2-alpha.8d13b88f canary
    npm ERR! registry error parsing json
    npm ERR! Darwin 15.6.0
    npm ERR! argv "/.nvm/versions/node/v6.5.0/bin/node" "/.nvm/versions/node/v6.5.0/bin/npm" "dist-tag" "add" "@org/<my_package>@0.2.2-alpha.8d13b88f" "canary"
    npm ERR! node v6.5.0
    npm ERR! npm  v3.9.6
    

    Not sure if this is the same issue and/or how to resolve? I'm on lerna 2.0.0-beta.30

  17. doug-wade commented on Nov 17, 2016

    @doug-wade
    Contributor

    I got this today with lerna 2.0.0-beta.30 -- I just got this error over and over in the console:

    npm ERR! prerelease is not a dist-tag on clefs
    npm ERR!
    npm ERR! If you need help, you may report this error at:
    npm ERR!     <https://github.com/npm/npm/issues>
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /Users/dwade/foss/clefs/npm-debug.log
    
        at checkExecSyncError (child_process.js:488:13)
        at Object.execSync (child_process.js:528:13)
        at execSync (/Users/dwade/.config/yarn/global/node_modules/lerna/lib/commands/publish.js:74:18)
        at /Users/dwade/.config/yarn/global/node_modules/lerna/lib/commands/publish.js:184:13
        at /Users/dwade/.config/yarn/global/node_modules/async/lib/async.js:718:13
        at replenish (/Users/dwade/.config/yarn/global/node_modules/async/lib/async.js:319:21)
        at /Users/dwade/.config/yarn/global/node_modules/async/lib/async.js:330:15
        at _parallel (/Users/dwade/.config/yarn/global/node_modules/async/lib/async.js:717:9)
        at Object.async.parallelLimit (/Users/dwade/.config/yarn/global/node_modules/async/lib/async.js:735:9)
        at ship (/Users/dwade/.config/yarn/global/node_modules/lerna/lib/commands/publish.js:180:11)
    

    I don't have have a prerelease tag of any kind:

    i-200077 foss/clefs ‹master› » git tag                                                                                                                                         130 ↵
    v0.0.1
    v0.0.2
    

    It also calculated the wrong version for some packages

  18. jamiebuilds commented on Nov 17, 2016

    @jamiebuilds
    Contributor

    Did you get a lerna-debug.log file?

  19. lock commented on Dec 28, 2018

    @lock

    This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  20. locked as resolved and limited conversation to collaborators on Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions