-
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
Tracking: Third party NPM replacements #3886
Comments
Maybe for now just add a note about the |
Discussing this more with @IgorMinar, we came to the point where the following would be acceptable:
NPM is only used when running |
For those subscribing to this issue, particularly the yarn crowd, here's a 6 minutes video that shows how yarn works with Angular CLI today: |
tl;dw:
|
For Yarn in particular, you also need to ensure you have 0.19 or higher. We had people report issues in the past where upgrading from 0.17 to 0.19 fixed it for them, and I'm aware of issues with global packages in general that were show stoppers to me and others, and were fixed in 0.19. |
I've added a written version with explanation here: https://www.gurustop.net/blog/2017/01/26/use-yarn-npm-with-angular-cli |
TL;DR:
|
Hi, I tried using yarn by doing
|
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. |
In the recent weeks, multiple have requested support for the following two NPM replacements:
yarn
, which has a lot of speed improvements. Many users reported problems using yarn with the CLI in some occasions.cnpm
, which uses an NPM cache specially made for China. It's not useful for anyone outside of China itself.What I suggest is embracing the fact that users can have an
angular-cli.json
file in their home folder to specify which NPM replacement they want to use.Something like adding to the configuration:
And having special code for some of them when the user creates a new package.
I think this is the cleanest way to do it. If we document it well, users won't have a problem. They can even replace its value per-project.
cc @IgorMinar
The text was updated successfully, but these errors were encountered: