-
Notifications
You must be signed in to change notification settings - Fork 12k
ng7 can not generate new project #12215
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
Comments
Edit: duplicate of #12198 |
Hi Not a big deal but can you said: I think you made a mistake about the tag of the duplicate question, even if I didn't find it for the moment ;) |
Wasn't able to find a duplicate in the issue search... Can we reopen this as I'm having the same problem with all |
Same issue here
|
Also experiencing this in a project I tried upgrading the Angular CLI to 7.0.2 |
Experiencing the same issue in a project I updated to Angular CLI 7 |
My issue was that my angular.json file was not in the root of my project. I moved it there and this fixed the error for me. |
I came across the same error. The reason is that new angular cli update makes angular-cli.json redundant, and it is replaced with angular.json instead. My previous Angular Cli version is 1.7.4, so to make the change, I ran the following command, it will make the conversion for you: ng update @angular/cli --migrate-only --from=1.7.4 |
Here is an Starter Project I created for Asp.net Core 2.1, Angular 7.0.3 and Bootstrap 4.1.3 You can download this project and start. |
Can you please tell the steps to start the execution of this project. |
|
Here are the Steps to Execute - doc File (Google Drive Link) |
I also encountered this problem. Is there any way to solve this problem? |
i dont want to create new project but i need to create custom pipe by creating new .ts file in my already existing project. but at the time of creating it throws an error of- "The new command requires to be run outside of a project, but a project definition was found at "angular.json"". I am just a fresher , so please help me out . Thank you :) |
Recently i also faced this issue, nothing helped me atlast after thinking for a while i got to know that node-modules were not installed yet and installing the packages( npm i) solved the problem. |
ng update @angular/cli |
@afifkraiem Thank you so much this worked for me. |
I'm having the same issue...
and when I run
|
Me too, i got the same message... i'm beginner with angular, can someone more experienced could help, what could be a problem ? http://prntscr.com/p7e4tv |
Update/Install latest version of npm - for mac or linux OS use sudo before command Update angular to latest version Globally npm uninstall -g angular-cli // For Windows Open Powershell on Administrator Mode Then we need to clear the cache using the following command. Now, install the Angular CLI using the following command. If you have created an Angular project then go inside that folder and type the following command. You can update RxJS using the ng update command. |
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. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
The log given by the failure
PS D:\test> ng test
The test command requires to be run in an Angular project, but a project definition could not be found.
PS D:\test> ng new ng7
The new command requires to be run outside of a project, but a project definition was found at "D:\test".
PS D:\test> ng v
Angular CLI: 7.0.0-beta.2
Node: 8.11.4
OS: win32 x64
Angular:
...
Package Version
@angular-devkit/architect 0.9.0-beta.2
@angular-devkit/core 0.9.0-beta.2
@angular-devkit/schematics 0.9.0-beta.2
@schematics/angular 0.9.0-beta.2
@schematics/update 0.9.0-beta.2
rxjs 6.2.2
typescript 3.0.3
PS D:\test>
Desired functionality
why I run
ng test
it hint requires to be run in andng new
it hint requires to be run outsideMention any other details that might be useful
The text was updated successfully, but these errors were encountered: