Skip to content
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

fix(init): fix link and npm install #2086

Merged
merged 1 commit into from
Sep 13, 2016

Conversation

filipesilva
Copy link
Contributor

Currently, ng new proj --link-cli breaks the linked angular-cli install due to npm/npm#10343.

This PR changes our init process to link after install, which takes longer but doesn't break dependencies. It also does not use local npm and instead uses the global npm since it's what we already use for other commands.

/cc @hansl

if (err) {
ui.writeLine(stderr);
ui.writeLine(chalk.red('Package install failed, see above.'));
exitCode = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you're not rejecting the promise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy paste from e2e... which means that one is also broken.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here but not the e2e. I assume it needs further changes and don't wanna mix the two things up.

@filipesilva filipesilva force-pushed the fix-link-cli branch 12 times, most recently from 316aacf to f9b1863 Compare September 13, 2016 22:52
@hansl
Copy link
Contributor

hansl commented Sep 13, 2016

Lgtm

@filipesilva filipesilva merged commit 7a39162 into angular:master Sep 13, 2016
@filipesilva filipesilva deleted the fix-link-cli branch September 13, 2016 23:11
@kylecordes
Copy link

This is already merged and needs no further look, but I just wanted to say, congratulations and thank you for moving away from the extra local install of in PM. That is a nice initial step toward paring back the dependency count and size.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants