-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
au new command exits early when a local CLI is installed in the current folder #977
Comments
does the local version simply not work? i've got a situation where i'm using 0.34 for production but want to try out 1.0.0-beta.6 before migrating too it but am running into this same error. you can't have 2 aurelia-cli's side by side ? |
If you install 1.0.0.beta.6 globally, your existing app with 0.34 will still build and run using local 0.34. Even with global cli upgraded, your existing apps on whatever cli version will continue to use the old version until you update app’s local pacakage.json for aurelia-cli dependency. You can use This issue is about to print understandable error message, not to fix some cli bug. People usually come to this issue when they mistakenly ran |
Yes, this issue is specifically about putting in place a friendlier error/ warning message to indicate to new users why they're unable to create their project. |
or, as the OP states
|
The merged fix did the proper thing: it ensures "au new" is executed by global installed cli. |
I'm submitting a bug report
Library Version:
1.0.0-beta.5
Operating System:
OSX 10.x|Linux (distro)|Windows [7|8|8.1|10]
Node Version:
6.2.0
3.8.9
Browser:
all
Language:
all
Loader/bundler:
all
Current behavior:
If you accidentally install the Aurelia CLI locally rather than globally by running
npm install aurelia-cli
rather thannpm install aurelia-cli -g
then when you run theau new
command the CLI exits immediately with the messageNo Aurelia project found
The expected behavior is that the CLI should either not exit early and go head to create the project. Or alternatively, show a more informative message like
Could not create Aurelia project, please remove local version of Aurelia CLI before running this command
.In the past week, I've run into this situation two times when attempting to get new devs started with Aurelia. If we can get this workflow streamlined it makes the on-ramp for new developers much smoother.
The text was updated successfully, but these errors were encountered: