-
Notifications
You must be signed in to change notification settings - Fork 12k
refactor(init): run link-cli
before npm-install
#2250
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
Conversation
Excellent... Great improvement in first use experience, looking forward to this. |
@filipesilva: we moved it to after in #2086 because Ember-CLI was using the wrong dependency, but was this only for our e2e tests? We later updated e2e to use Could you check it out? if it doesn't work, I think we should just kill the |
@hansl, This was intended to reduce the time it takes to scaffold a new project by skipping re-installing the |
Except, the problem with this behavior (as documented in #2086), is that it makes everyone hit by the |
It looks like it only affects developers who have angular-cli repo locally and npm linked it.
=> Global installation of angular-cli is not affected. So as @hansl said, the issue could be with angular-cli e2e tests but the build in appveyor went well for Node 5 so please keep this functionality. And here are some metrics: Project size:
=> 72% smaller Command time (only ng new, angular-cli 1.0.0-beta.15 already installed globally):
=> 76% faster On Windows 7, Intel i7, node 6.5.0, npm 3.10.6 |
My timing ratios are similar to those from @aecz - although it sounds like there is a remaining issue here (--link-cli works with an ordinary global install of CLI, but with a local dev repo who linked that one globally? I didn't try it on the same machine with my source checkout), it seems worth fixing as the user experience is so much better. In particular it is much better for developers on Windows machines - for historical technical reasons I have forgotten, the file system implementation in Windows performs well reading and writing huge files but not so well reading and writing a large number of small files. Is it possible that this link option could be polished sufficiently to be made the default? |
A proper test I imagine would be to skip NPM installation (
If this doesn't affect the folder of the globally installed |
As mentioned in #2250 (comment), this change was introduced in #2086 to address npm/npm#10343. npm/npm#10343 is very well summarized in its title:
It currently has the It's not very relevant that switching the order of The If you want to use the |
I think the flag --link-cli for originally intented to link to the global version of angular-cli as stated in #778 . For those who wants this behavior and do not have angular-cli repo linked locally. You can use these commands:
Much faster and lighter. Perfect when you make a demo of how great is angular-cli. |
@aecz it's true that initially that was the purpose of
Thus we cannot neither recommend nor support that usage. |
Since it turns out that the NPM bug gets in the way of this efficiency/speed initial purpose, would be wise to park the link feature out of the way somehow? Here are a couple of ideas come to mind:
Offhand it seems that one of these could save some trouble for people who make their way into this feature somehow, are enthused at the apparent initial project-setup speed improvement (dramatic on Windows) without realizing the problems. |
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. |
No description provided.