angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Installing 1.0.0-beta.11-webpack.8 actually installs 1.0.0-beta.10 instead

Open batchu opened this issue 10 years ago • 9 comments

Installing 1.0.0-beta.11-webpack.8 actually installs 1.0.0-beta.10 instead on Windows 7. I"m going crazy

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) 7
  2. Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here: Want 1.0.0-beta.11 but instead it installs beta.10
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. Run: npm i -g [email protected] Now run C:\Windows\system32>ng -v (node:7820) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. angular-cli: 1.0.0-beta.10 node: 6.5.0 os: win32 x64

batchu avatar Sep 01 '16 00:09 batchu

Clean your npm cache npm cache clean & try to install again npm i -g [email protected]

neilhem avatar Sep 01 '16 04:09 neilhem

This is getting so weird. I tried a clean and install. I now see a mobile version of angular-cli as installed when I do an ng -v

Here's the output

And then when I clean cache the second time and do an ng -v in another folder, it now shows the correct version. What's going on?

batchu avatar Sep 01 '16 04:09 batchu

I can confirm the same problem on os.x . Cleaning multiple times and reinstalling did not help

mwawrusch avatar Sep 01 '16 05:09 mwawrusch

ng --version shows the locally installed version if you are in a folder with the cli installed, otherwise it shows the globally installed version.

For most commands it doesnt even matter wich version you have globally installed, because the global package just 'proxies' the command to the local version.

niklas-dahl avatar Sep 01 '16 06:09 niklas-dahl

@niklas-dahl I ran that command outside of an existing angular2 cli project

batchu avatar Sep 01 '16 23:09 batchu

Im experiencing the same problem. After following install/ update directions my version remains: angular-cli: 1.0.0-beta.10

System Version: macOS 10.12 (16A313a) Kernel Version: Darwin 16.0.0

sterlingfs avatar Sep 02 '16 07:09 sterlingfs

Does this still happen with latest with the latest version (beta.15)?

filipesilva avatar Sep 21 '16 02:09 filipesilva

I believe this is just what @niklas-dahl said to be honest - the difference in version from inside and outside a project.

filipesilva avatar Sep 21 '16 03:09 filipesilva

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.