-
Notifications
You must be signed in to change notification settings - Fork 771
npm WARN @angular/flex-layout@2.0.0-rc.1 requires a peer of @angular/common@^2.2.3 but none was installed #344
Comments
The rc.1 version was renamed, into beta.6 (https://github.com/angular/flex-layout/blob/v2.0.0-beta.6/package.json). If you want to use angular 4 (what I assume you are trying to do), then you need to use beta.8 of flex layout |
Please clean-install @angular/flex-layout v2.0.0-beta.8. |
+1 very bad! clean it from npm |
@gimox - the Rc.1 was deprecated and we attempted to clean [unpublish] it from the registry.
|
How are you installing the Rc.1 version?
(so now i know the problem and i fix the package to not update to major version, but many people don't know that) How do you propose we improve the cleaning of that invalid release from the npm registry? bump to a upper version rc-2 |
If the code is not ready to be in RC, then you need to just acknowledge that the 2.0.0 release is ruined and scrap it. The best thing to do would be to release 2.0.1-beta1 or whatever the first release of the next version number would be. You should never go down again, and unpublishing seems like a bad idea. |
rc1 is the same as beta6, it's a publish error, it can safe unpublish |
@gimox Except for the fact that some people will certainly have rc1 in their package.json files, so you'll be breaking their code on unpublish. EDIT: I just realized that you're not the one responsible for the project, as best I can tell. @ThomasBurleson See above. I strongly discourage removing it from NPM. Version numbers are append only. If you remove a problematic version, you are certain to create even more problems for your users. |
Beta6 is an old outdated release. Devs should absolute nstall nightly build
for now; see wiki for details.
…On Wed, Oct 4, 2017, 9:58 AM Nick Sloan ***@***.***> wrote:
@gimox <https://github.com/gimox> Except for the fact that some people
will certainly have rc1 in their package.json files, so you'll be breaking
their code on unpublish.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM17WdlzFPS9_6gkGWAXHQFYO_0XgNYks5so7k8gaJpZM4Ocs9O>
.
|
Pin down your desired beta version by removing the "^" prefix. Example: Otherwise, you will end up with the RC.1 version which is really really old. |
Do not install beta 9 if you need Angular 5 compatibility. Those fixes are
in nightly builds and will be released in upcoming beta.10.
…On Fri, Oct 6, 2017, 10:02 AM Val Neekman ***@***.***> wrote:
You need to watch out to ensure you are not indirectly installing the
outdated RC.1.
flex-layout "2.0.0-rc.1" is chronologically greater than any
"2.0.0-beta.X".
Therefore, if you have something like ***@***.***/flex-layout":
"^2.0.0-beta.9" in your package.json, then, yarn/npm install will
automatically look at the "^" mark and bring down the latest minor release.
It seems both *beta* and *rc* releases are considered minor. So, the
latest chronological minor release on npm would be "2.0.0-rc.1 and it will
get installed instead as per "^".
*Note that "2.0.0-rc.1" is the same as "2.0.0-beta.5".* (you would be
using very very old code)
*Workaround:*
Pin down your ***@***.***/flex-layout": "^2.0.0-beta.9" by removing the "^"
mark.
TL;DR
Also, verify the final install using (ng --version)
*TEST:*
1. Ensure you have this in your package.json ***@***.***/flex-layout":
"^2.0.0-beta.9")
2. yarn/npm install
3. ng --version
@angular/cli: 1.4.4
node: 6.11.0
os: darwin x64
@angular/animations: 4.4.4
@angular/cdk: 2.0.0-beta.11
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
***@***.***/flex-layout: 2.0.0-rc.1* (remove the "^" mark from
package.json and try agian)
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/material: 2.0.0-beta.11
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/service-worker: 1.0.0-beta.16
@angular/cli: 1.4.4
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#344 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM17UIwhVNS2ky6yUt3bzXBJNIj-PFTks5spl0_gaJpZM4Ocs9O>
.
|
@ThomasBurleson The concern is not new users, but all of your existing users who you are forcing to come here to figure out how to fix the problem that you created by breaking the semver contract. Many of them have already upgraded to rc.1 erroneously, and the problem won't realistically be fixed until you release rc.2 or, as I have suggested, release 2.0.1-beta.1, which is the only correct course of action. This is a very disappointing way to manage this project. |
@nicksloan This is still a beta project for a reason. It is not ready yet & mistakes can happen. I am glad that you stumbled on this thread and figured out your way. @ThomasBurleson I for sure appreciate all the time you put in this project and looking forward to seeing the RC.2 release. Base on this (+ve) note, let's conclude this thread. Pls. |
The currently nightly release is stable with Angular 5 and will be an important release for the community. Unfortunately, my team does not control the final testing and actual release processes for this library.
I do acknowledge that we need to remove the Beta.1 tag OR publish the next release as 2.0.1-beta.1.
|
When I try to install the library I get the following warnings:
The text was updated successfully, but these errors were encountered: