You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
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
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.
Activity
jasonmit commentedon Feb 8, 2016
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.
dthree commentedon Feb 8, 2016
@jasonmit thanks - could you please explain exactly what you did to tag them properly? Can't get over this hump...
dthree commentedon Feb 9, 2016
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] prereleaseHowever this didn't change anything on this error...
hzoo commentedon Feb 9, 2016
I think we need more info to debug this one? Not sure where the error is happening
What were doing is
npm publish --tag prereleasefor 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 + " stablejamiebuilds commentedon Feb 11, 2016
The only thing I can think of is if the initial tagging is failing for some reason.
dthree commentedon Feb 11, 2016
Yeah, it looks like it. But it's totally silent.
jamiebuilds commentedon Feb 12, 2016
@dthree We might just have to close this one as cannot reproduce, but I'm going to add better logging for lerna (#49)
dthree commentedon Feb 12, 2016
okay... question - what If I let you clone the git repo It's happening on?
jamiebuilds commentedon Feb 12, 2016
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
dthree commentedon Feb 12, 2016
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:
./packages/template.package.jsonto match your private NPM repos.gulpto replicate thosepackage.jsonfiles to each sub package.lerna- it should be reproducible right there.Thanks a million!
ph101pp commentedon Apr 3, 2016
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 inpackage.jsonSo a package in folder
packages/core/with{ "name" : "library-core" }inpackage.jsonwill produce the error.dthree commentedon Apr 3, 2016
Oh snap - yeah, that's what it is.
https://github.com/dthree/cash/tree/master/packages
cpsubrian commentedon Apr 4, 2016
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
@orgin the package name. AKA@org/my-moduleis the npm package name but the folder ismy-module.cpsubrian commentedon Apr 4, 2016
My package successfully published with
master, so .. for me this issue is already resolved.hzoo commentedon Jun 13, 2016
Alright cool closing for now
dtothefp commentedon Oct 5, 2016
@cpsubrian I'm running into the same problem of an
@orgname and getting the errorNot sure if this is the same issue and/or how to resolve? I'm on
lerna 2.0.0-beta.30doug-wade commentedon Nov 17, 2016
I got this today with
lerna 2.0.0-beta.30-- I just got this error over and over in the console:I don't have have a
prereleasetag of any kind:It also calculated the wrong version for some packages
jamiebuilds commentedon Nov 17, 2016
Did you get a lerna-debug.log file?
lock commentedon Dec 28, 2018
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.