docs: Improve "updating angular cli" steps#4487
Closed
dmytroyarmak wants to merge 1 commit into
Closed
Conversation
Contributor
|
This is a temporary pain, but should not be part of the update steps. Could you rephrase it to say something like "if you're using the old |
c9a79d2 to
78f1f94
Compare
Add step that removes "angular-cli" from "package.json" to make sure that after
upgrading from "angular-cli" to "@angular/cli" only "@angular/cli" is installed
into "node_modules".
It's needed to avoid problems with npm run scripts that uses "ng" command.
Otherwise there will be an error ("You have to be inside an angular-cli project in
order to use the test command.") when running "npm start", "npm test" or
"npm run ng -- ..." commands.
78f1f94 to
c157beb
Compare
Contributor
Author
|
Thank you @hansl |
10dcd08 to
c157beb
Compare
Meligy
reviewed
Feb 17, 2017
Contributor
Meligy
left a comment
There was a problem hiding this comment.
It would be a good chance to replace the part just after that, about ng update , to tell you to follow the breaking changes in CHANGELOG instead.
filipesilva
approved these changes
Feb 22, 2017
asnowwolf
pushed a commit
to asnowwolf/angular-cli
that referenced
this pull request
Apr 12, 2017
Add step that removes "angular-cli" from "package.json" to make sure that after
upgrading from "angular-cli" to "@angular/cli" only "@angular/cli" is installed
into "node_modules".
It's needed to avoid problems with npm run scripts that uses "ng" command.
Otherwise there will be an error ("You have to be inside an angular-cli project in
order to use the test command.") when running "npm start", "npm test" or
"npm run ng -- ..." commands.
Close angular#4487
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add step that removes "angular-cli" from "package.json" to make sure that after
upgrading from "angular-cli" to "@angular/cli" only "@angular/cli" is installed
into "node_modules".
It's needed to avoid problems with npm run scripts that uses "ng" command.
Otherwise, there will be an error ("You have to be inside an angular-cli project in
order to use the test command.") when running "npm start", "npm test" or
"npm run ng -- ..." commands.
Here are related issues: #4463, #4439