unable to update the global install of aurelia-cli
See original GitHub issueI’m submitting a bug report
- Library Version: 0.21.0
Please tell us about your environment:
-
Operating System: Windows 10 Anniversary update
-
Hardware: Surface Book (no longer reproduces on my Dell laptop.
-
Node Version: 6.2.0
-
NPM Version: 3.10.8
-
Browser: N/A
-
Language: N/A
Current behavior: I’m having issues updating my global installation of Aurelia-cli.
I ran: npm uninstall -g aurelia-cli
Then I ran npm install -g aurelia-cli@0.21.0
to make sure I got the latest version
When I run au -v
the version reported is not what i’d expect. Here is the command line output from when I installed the Aurelia-cli 0.20.0 and tested the verion
This issue still exists if you close and open a new command prompt.
Here is the full output from my command prompt:
C:\Users\chrsm\Documents\Visual Studio Code>npm install -g aurelia-cli@0.21.0
C:\Users\chrsm\AppData\Roaming\npm\au -> C:\Users\chrsm\AppData\Roaming\npm\node_modules\aurelia-cli\bin\aurelia-cli.js
C:\Users\chrsm\AppData\Roaming\npm\aurelia -> C:\Users\chrsm\AppData\Roaming\npm\node_modules\aurelia-cli\bin\aurelia-cli.js
C:\Users\chrsm\AppData\Roaming\npm
`-- aurelia-cli@0.21.0
C:\Users\chrsm\Documents\Visual Studio Code>au -v
0.19.0
C:\Users\chrsm\Documents\Visual Studio Code>cd C:\Users\chrsm\AppData\Roaming\npm
C:\Users\chrsm\AppData\Roaming\npm>au -v
0.21.0
Expected/desired behavior:
- What is the expected behavior?
I’d expect
au -v
to report the right version that I just installed, 0.21.0 - What is the motivation / use case for changing the behavior? I would like to update so I can take advantage of the improvements when I create a new Aurelia project or update an existing Aurelia project with updated script files like the test script examples or au commands.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Updating the Aurelia CLI
Since the CLI is installed both globally and locally, you need to update both. First, run npm install aurelia-cli@latest -g to update the...
Read more >Cannot upgrade aurelia-cli from 0.21.0 to 0.23.0
Each Aurelia project gets its own local version of the CLI so that upgrading your global version of the CLI won't magically break...
Read more >Developers - unable to update the global install of aurelia-cli -
Current behavior: I'm having issues updating my global installation of Aurelia-cli. ... This issue still exists if you close and open a new...
Read more >aurelia-cli - npm
Start using aurelia-cli in your project by running `npm i aurelia-cli`. ... Go into the cli directory: cd cli; Run npm install ......
Read more >A Installation & set up - Aurelia in Action - liveBook · Manning
Outdated NPM cache: If you receive a message indicating that the aurelia-cli package is not a part of the NPM registry when attempting...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I also ran the uninstall and then closed the command prompt. Then from a fresh command prompt I ran
npm -g cache clear
. Then I ran the global install of aurelia-cli. Finally ranau -v
and still got the unexpected output of 0.19.0Glad you got it resolved!