-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation error on every clean installation from v1.5.1 until 1.6.4 #9283
Comments
We are encountering the same issue after the dependency changes. This started with commit cd4eb34 The issue temporarily went away for us with the rollback to the changes in the devkit today. But with the latest patch update the build error returned. |
For those trying to get around this temporarily until a fix comes out:
|
I can also confirm that running npm i --no-save @angular-devkit/core@0.0.28 worked for me as well. |
I encountered this problem on 1.6.3 and 1.6.4. Updated to 1.6.5 and on a fresh install this problem doesn't occur anymore. If anyone could confirm. |
"dependencies": {
"@angular-devkit/build-optimizer": "~0.0.31",
"@angular-devkit/schematics": "~0.0.34", |
in this commit, so between versions 0.0.48 and 0.0.49 i think |
edit: ok, is there something one can do with: ok, I'm sorry. Does it all mean that if I reference the angular/cli dependency with no prefix with a fix version which then work on the day. Something like this:
Can still happen, because you use the tilde(~)-prefix in your dependencies? I'm sorry, but the whole npm stuff is broken by design.. a really unmistakeable sh*thole.. :( |
Yesterday we put out several releases for minor version that should address this: Updating to the latest version within the minor you're using should fix this issue. For example, if you are on I'd also like to remind everyone that unless you use a lockfile you do not have reproducible installs. Both NPM v5+ and Yarn support lockfiles. If your CI works one day but not the next and you did not change your code or It is your responsibility as a library consumer to use lockfiles. No one wants to do a release with bugs but it sometimes happens, and the best we can do is to fix it as fast as possible with a new release. When you have a couple of thousand total dependencies it is only a matter of time until one of them has a bad release. |
@filipesilva you make a very good point above, however I was under the impression that this is happening based on the globally installed version of @angular/cli - I might be wrong but I wasn't aware of there being a global lock file of the type used by yarn or the more recent versions of npm. |
I fixed this in my project by doing the following: |
@blackholegalaxy - I can confirm that your solution works on a brand-spanking-new project. Thanks for saving me a headache. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Any version from v1.5.1 to 1.7.0beta.0 returns this msg on the clean installations:
Versions
v1.5.1 until v1.7.0.beta.0 and linuxmint 17.3 & lubuntu 17.10
Repro steps
Observed behavior
npm returns this warning at end
After the installation,
ng -v
returns this errorThe text was updated successfully, but these errors were encountered: