-
Notifications
You must be signed in to change notification settings - Fork 12k
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
You have to be inside an angular-cli project in order to use the build command. #1400
Comments
Could you explain why this is unexpected? The cli needs to know how the project is configured. |
which config file ? steps:
|
happend again:
|
now files in projects:(no src dir and config files now )
|
Hi @WG-Com, it seems like something went wrong in the deploy procedure, namely the error that you got: Sometimes when this happens the repo is left on the I thought That I had picked fixed all scenarios where that happens but it seems there is at least one still. I'll try to fix it. |
I realize this item is about a bug, but I'd like to suggest as alternative to "The cli needs to know how the project is configured": I think it would be quite possible and useful for a subset of the CLI functionality to work on "non-CLI" project. I was recently working on such a project, and wanted to scaffold a few components. CLI could have done 90% of it for me, if CLI was willing to run on non-CLI projects. It would need to skip a few bits here and there and assume some defaults, but still more useful than refusing to run. Obviously not a priority for today... but maybe eventually? |
@kylecordes I'd prefer to not mix up the two things in this issue tbh, since the crux of the issue here is a bad error catcher that leaves the repo in the wrong branch and not the project restrictions. Happy to have another issue open for discussion though. |
@filipesilva I made #1464 a feature request for the idea above. |
Just a thought, how about serving directly from |
@intellix I was thinking about that really... it would make the process a LOT simpler. Have you checked if it also works with user/organization pages? If so, I'm definitely partial to changing it that way. The whole thing could be rewritten with a |
afraid I've never used it before, but they just posted a new blog post about it becoming even easier if it's relevant :) https://github.com/blog/2289-publishing-with-github-pages-now-as-easy-as-1-2-3 |
After giving ng-serve This message emerged I have to install ember-cli? |
@samverneck no, it's just a message from ember-cli (it's the base for angular-cli). We should change it tbh. |
Anyone resolved this? |
just got this issue tonight. first it complained that it couldn't delete src because files were in use or something. I was still 'serving' so i thought that was the culprit. I shut it down and tried to run again, then got the 'you must be inside an Angular-CLI project' error. Running the latest everything. |
@randyaa -- I encountered the same problem today after doing a global cleanup of my node packages. After digging into the angular-cli code, it looks like it's checking for the presence of the I think it'd be nice if this got fixed though, since I imagine a lot of projects are still using the old package name and the error is not super clear. I'll submit a PR if I get time. |
Closed via #4385. |
I am also getting the same issue. As @ibwhite said that it should be @angular/cli in package.json so I have the same entry though I am getting the same error. |
I had |
Is it right way to do. As angular cli has changed its dependencies.
…On Thu 9 Feb, 2017, 8:51 AM Ryan Dammrose, ***@***.***> wrote:
I had "angular-cli": "1.0.0-beta.24" in my package.json and I updated it
with a package.json overwrite, that changed it to ***@***.***/cli":
"1.0.0-beta.30", which gave me this error. I changed it back to "angular-cli":
"1.0.0-beta.30" and it is working again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1400 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJuOhnwFQJKiPSfF6oN2jbxN3ys2EJVCks5raoY-gaJpZM4JRPQ4>
.
|
@maplion I tried that but it's asking me to select versions below 1.0.0-beta.28.3. It says could not find specified dependency. |
@abhinaypandey I ran an Note: I did have to rename / delete my node_modules folder and redo an |
I just run into this problem,
No need to delete the node_modules folder |
I have tried @plastikaweb 's instructions, but not successed |
mmm @dinhkk have you tried to run |
@plastikaweb solution worked for me after changing my package.json, angular-cli.json and running ng init after that. |
Hi , Do let me know if you have any confusion. |
@nbora98 hey ,Your last sentence blind my dog's eyes |
@seize11 你亮瞎了我的狗眼 |
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. |
then error to me :
The text was updated successfully, but these errors were encountered: