-
Notifications
You must be signed in to change notification settings - Fork 12k
ng --version reports wrong version number #5138
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
Comments
I just tried your reproduction steps and got the following:
Would you mind doing the following?
|
Just recreated the issue on my home machine. I update my home machine from 1.0.0-beta.24, and after the update following the above steps, it still says that the version is 1.0.0-beta.24. If I run the command you gave, I get the following: |
Great, so globally you have Doing Can you go outside any project directory (say |
Yes, I am doing this outside a project folder. But, just in case I did it at c:\ and got: |
It looks like you still have Shout out to @hansl for noticing the |
I've done that already, but I'll do it again. |
Even after running I tried an I gave up, uninstalled nodejs. Deleted I'm now properly receiving the correct version:
Not a real work around. I think the answer lies in where that 'angular-cli' folder in 'nodejs/node_modules' came from, and how to properly remove it. |
@bklik I know there are cases in windows where npm global installs get out of sync and it really sucks to figure out where the leftover modules are. I think it might be related to It's not a CLI issue though... the CLI can't really control that sort of stuff. So in that sense it's not something I want to leave open in this issue tracker. |
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. |
After installing angular-cli to the latest, the --version command returns version 1.0.0-beta.30 instead of 1.0.0-rc.0
OS?
Windows 10
Versions.
This is what is at issue.
Repro steps.
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
The log given by the failure.
-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
...
PS C:\Projects> ng --version
@angular/cli: 1.0.0-beta.30
node: 6.9.5
os: win32 x64
The text was updated successfully, but these errors were encountered: