Closed nasreddineskandrani closed 7 years ago
HI @nasreddineskandrani
A fresh clone works fine for me on Mac OS X.
Some notes on the messages you reported:
ng serve
Yes, you need to have the ng
command in your path. However it's provided by the @angular/cli
package, not the ng
package. So try npm i -g @angular/cli
instead.
Alternately you can run yarn start
which uses the local version of @angular/cli
from the project's node_modules
folder.
yarn start
ERROR in AppModule is not an NgModule
is a known incompatibility with older versions of Yarn and @angular/cli
generated projects. Please try updating to the latest version of yarn.
thank you
Hi, The example is not working for me. I tried
yarn install
ng serve
(as doc mention) <- here problem with ng had tonpm install ng
then i retriedng serve
<- still not working error =>You have to be inside an angular-cli project in order to use the serve command.
yarn start
(it start but with error)ERROR in AppModule is not an NgModule
.... env: windows 10 / node v6.9.5