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

Cannot Install Latest Angular Version #2751

Closed
curiouscod3 opened this issue Mar 28, 2020 · 2 comments · Fixed by #2785
Closed

Cannot Install Latest Angular Version #2751

curiouscod3 opened this issue Mar 28, 2020 · 2 comments · Fixed by #2785
Labels
outdated scope: angular Issues related to Angular support in Nx type: bug

Comments

@curiouscod3
Copy link

curiouscod3 commented Mar 28, 2020

Prerequisites

[x ] I am running the latest version
[ x] I checked the documentation (nx.dev) and found no answer
[ x] I checked to make sure that this issue has not already been filed
[ x] I'm reporting the issue to the correct repository (not related to React, Angular or any dependency)

I've clean installed nx cli latest version as well as angular-cli with @latest.
I am not sure whether this is a bug or not. there was no doc in terms of this in NX.dev.

npm install -g @nrwl/cli@latest
npm install -g @angular/cli@latest
ng add @nrwl/angular@latest

My Global Angular CLI version

Angular CLI: 9.1.0
Node: 12.16.1
OS: darwin x64

Angular:
...
Ivy Workspace:

Package Version

@angular-devkit/architect 0.901.0
@angular-devkit/core 9.1.0
@angular-devkit/schematics 9.1.0
@schematics/angular 9.1.0
@schematics/update 0.901.0
rxjs 6.5.4

Whenever I "ng add @nrwl/angular or ng add @nrwl/angular@latest"
Currently, the latest angular/core version is 9.1.0

"dependencies": {
"@nrwl/angular": "^9.1.4",
"@angular/animations": "9.0.0",
"@angular/common": "9.0.0",
"@angular/compiler": "9.0.0",
"@angular/core": "9.0.0",
"@angular/forms": "9.0.0",
"@angular/platform-browser": "9.0.0",
"@angular/platform-browser-dynamic": "9.0.0",
"@angular/router": "9.0.0",

It always installs older version(9.0.0). How can I install with Latest Angular Version?

When I do "ng update "

Using package manager: 'npm'
Collecting installed dependencies...
Found 32 dependencies.
We analyzed your package.json, there are some packages to update:

  Name                               Version                  Command to update
 --------------------------------------------------------------------------------
  @angular/cli                       9.0.1 -> 9.1.0           ng update @angular/cli
  @angular/core                      9.0.0 -> 9.1.0           ng update @angular/core
  rxjs                               6.5.3 -> 6.5.4           ng update rxjs
@curiouscod3
Copy link
Author

curiouscod3 commented Mar 28, 2020

I used "ng update --all --force"to forcely upgrade the version. "
However, I am very concerned with some dependency issue with NX that I don't know in the future.

Now, I even can't install anything via @nrwl/XXX except for @nrwl/node

Installing packages for tooling via npm.
Installed packages for tooling via npm.
Cannot read property 'replace' of undefined

I've found that this is because I've install with Empty preset. But, this should have worked regardless of the option.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: angular Issues related to Angular support in Nx type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants