npm install aurelia-cli -g installs 26 not 25 and neither 25 nor 26 are working on Ubuntu
See original GitHub issueI’m submitting a bug report
- Library Version:
25.0.0
26.0.0
Please tell us about your environment:
-
Operating System: Linux (Ubuntu 16.04 LTS)
-
Node Version: 4.2.6
-
NPM Version: 3.10.9
Current behavior:
- After using npm install aurelia-cli -g it installed, 0.26.0 not 0.25.0 (I had 0.24.0 before and thought it will install 0.25.0 as it was mentioned as the latest version
- I’m not able to use any ‘au’-commands
- when installing either 0.25.0 or 0.26.0 globally and running for example ‘au -v’, I’m getting this:
au -v
/usr/local/lib/node_modules/aurelia-cli/lib/file-system.js:70
exports.join = function(...segments) {
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/aurelia-cli/lib/cli.js:4:12)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
- In both cases I did used a fresh install by using
npm uninstall aurelia-cli@0.25.0 -g
Expected/desired behavior:
- Being able to use any ‘au’-commands at all
- Installing Version 0.25.0 while using npm install aurelia-cli -g (why am I on a different release channel?)
Thanks for helping me
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
aurelia-cli - npm
Go into the cli directory: cd cli · Run npm install · Run build npm run build · Link the cli with: npm...
Read more >node.js - NodeJS - Error installing with NPM - Stack Overflow
I am installing a certain NodeJS script - Caress. But i am not unable to. I am using Windows 8.1, can anyone tell...
Read more >no local installation of Aurelia-CLI could be found
The current directory is likely an Aurelia-CLI project, but no local installation of Aurelia-CLI could be found. (Do you need to restore node...
Read more >testcafe | Yarn - Package Manager
A Node.js tool to automate end-to-end web testing. ... Visibility criteria update: TestCafe no longer interacts with elements that have the visibility: ...
Read more >sitemap.xml - ITNEXT
... 2021-12-26 monthly 0.7 https://itnext.io/tagged/microservices 2022-11-23 ... -of-many-awesome-additions-in-ruby-2-5-0-and-how-to-install-it-4b6f07bdc25f ...
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
@TonySpegel, you will get that issue if you’re not running higher than node 5 (pretty sure it needs to be the LTS or greater, or at least around 6). Something about being able to use ES6 features (like the
...
spread operator).Upgrade your node version first. Then, try these following commands (exactly, just copy paste) to ensure that you’ve cleaned and re-installed the latest aurelia cli
npm uninstall -g aurelia-cli au
npm cache clean
npm install -g aurelia-cli
I’m going to go ahead and close this issue for now, as the CLI has needed to be running >=6 for a while. If we need to support previous versions, let’s make that a separate issue.