Giter VIP home page Giter VIP logo

Comments (21)

cornflourblue avatar cornflourblue commented on July 24, 2024 30

This project doesn't use the angular cli, it uses webpack directly. To start run the command npm start

from angular-7-role-based-authorization-example.

vrdevendra avatar vrdevendra commented on July 24, 2024 15

Make sure you are in correct repository or opening correct folder.
As shown in below attachment, you need to open that folder in angular.
Capture

from angular-7-role-based-authorization-example.

angulodev avatar angulodev commented on July 24, 2024 5

para solucionar

cd (name app)
luego ejecuta
ng serve
** ng serve -o // asi levantas el navegador por defecto

from angular-7-role-based-authorization-example.

vrdevendra avatar vrdevendra commented on July 24, 2024 3

@khaldounjalem
Nothing special, look closely error saying itself "The serve command requires to be run in an Angular project, but a project definition could not be found" it means that the command which you are trying to execute is run on angular project only so either you opened wrong project (other than angular) or wrong directory.

from angular-7-role-based-authorization-example.

abvarunjain avatar abvarunjain commented on July 24, 2024 3

This project doesn't use the angular cli, it uses webpack directly. To start run the command npm start

it works

from angular-7-role-based-authorization-example.

sprakash1 avatar sprakash1 commented on July 24, 2024

same error for me

from angular-7-role-based-authorization-example.

aayush-18 avatar aayush-18 commented on July 24, 2024

i have exactly the same issue. I cloned a repository of Barcode Scanner by Quagga. i did the ng install to download the necessary components but afterwards when i try to run ng build it is not working.

from angular-7-role-based-authorization-example.

MU8T4Z4 avatar MU8T4Z4 commented on July 24, 2024

run command ( npm install) to update node models.

from angular-7-role-based-authorization-example.

abhisheikreddy646 avatar abhisheikreddy646 commented on July 24, 2024

while am getting this error "The serve command requires to be run in an Angular project, but a project definition could not be found" i tried npm install, and updated "ng update @angular/cli --migrate-only --from=1.7.3" still am getting this error .what is the solutions?

from angular-7-role-based-authorization-example.

HomeroLara avatar HomeroLara commented on July 24, 2024

@svdevendra yep, this worked. thanks!

from angular-7-role-based-authorization-example.

khaldounjalem avatar khaldounjalem commented on July 24, 2024

@svdevendra
Please, what exactly did you do?

from angular-7-role-based-authorization-example.

ranjitben10 avatar ranjitben10 commented on July 24, 2024

all solutions available here is not working for me

from angular-7-role-based-authorization-example.

ranjitben10 avatar ranjitben10 commented on July 24, 2024

https://github.com/abhianshu2020/Hearti-Health
download files from here and run it..

from angular-7-role-based-authorization-example.

Ayesha-Mulla avatar Ayesha-Mulla commented on July 24, 2024

Please check if node modules are installed properly. If yes, refresh node module folder and try running app in parent directory.

from angular-7-role-based-authorization-example.

angulodev avatar angulodev commented on July 24, 2024

@khaldounjalem
Nada especial, mira de cerca el error diciéndose a sí mismo "El comando de servicio requiere ejecutarse en un proyecto angular, pero no se pudo encontrar una definición de proyecto", significa que el comando que está intentando ejecutar se ejecuta solo en un proyecto angular abriste un proyecto incorrecto (que no sea angular) o un directorio incorrecto.

excelente respuesta, muchas gracias

from angular-7-role-based-authorization-example.

Clinzho1996 avatar Clinzho1996 commented on July 24, 2024

pls im having the same issue too
its saying "The serve command requires to be run in an Angular project, but a project definition could not be found.

from angular-7-role-based-authorization-example.

Clinzho1996 avatar Clinzho1996 commented on July 24, 2024

but its sorted now. i opened the project folder then run the git bash, then "ng serve" and it worked perfectly.

from angular-7-role-based-authorization-example.

lorran-mariuba avatar lorran-mariuba commented on July 24, 2024

but its sorted now. i opened the project folder then run the git bash, then "ng serve" and it worked perfectly.

I did the same thing, but it's not working. I don't know what I have to do. I'm in the correct repository and the right project. Someone can help?

from angular-7-role-based-authorization-example.

ganeshsthube avatar ganeshsthube commented on July 24, 2024

Igot the error "The serve command requires to be run in an Angular project, but a project definition could not be found" in two different condition
1)when our project is just static and we are running this project in from different folder.
solution :- Go to the same folder in terminal using "cd" command where our project is located.

2)When we clone dynamic project from github and then try to run "ng serve" command in terminal. At that time you will get same error
Solution :-Run the ".sln" file using visual studio.

from angular-7-role-based-authorization-example.

Dinuda avatar Dinuda commented on July 24, 2024

None of them work for me.

from angular-7-role-based-authorization-example.

paulmunyao avatar paulmunyao commented on July 24, 2024

This project doesn't use the angular cli, it uses webpack directly. To start run the command npm start

Hi I have run the same command but I'm getting an error sating electron not found
Kindly advise

from angular-7-role-based-authorization-example.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.