Git clone Angular Cli project show that you are not in the project

how to run angular project downloaded from github
how to run existing angular project
create angular 7 project using cli
angular project github
run angular app after clone
angular-starter project github
you have to be inside an angular-cli project in order to use the serve command.
create angular project

I've been always struggling with angular cli as it keeps giving me the error that I am not in angular cli project .

Would like to setup this project https://github.com/codediodeio/ngrx-fire.

I followed the basics:
git clone https://github.com/codediodeio/ngrx-fire.git ngrxFire
cd ngrxFire
npm install

and than ng serve, show me that I am not in the project and I am 100%. Is there a configuration on my machine I normally need to update when i am doing a angular cli project?

I found a way to set it up, not sure if this is how you do it and what is the issue but it worked. One of these days:

So you do the usual:

git clone https://github.com/codediodeio/ngrx-fire.git ngrxFire

cd ngrxFire

but than you

rm -rf node_modules dist tmp
npm install --save-dev angular-cli@latest
npm install
npm init

On ng init say no to NOT overwrite anything, the next issue it will scream is that something with promise and polyfill so you need to run a command:

npm install promise-polyfill --save-exact

You will notice that it create an enviorments folder in the root of the app, so in the module.ts re-point it to the right folder.

Than you will need to in firebase do two things: 1) Change the setting in Authentication so that Anonymous user can connect and change the rules in the db to

{
    "rules": {    
        ".read": true,
        ".write": true
    }
}

Than you can run ng-serve. Now why this work , if anyone could explain I would buy that persona a drink. Why does angular-cli conflict like this?

cloning, There is no command as ng init . Can you please confirm the steps you followed. Output from ng init : The specified command init is invalid. A few notes on setting up a CLI project with ngUpgrade if you would like to recreate this: This project starts with the AngularJS files in TypeScript, using modules, and aligned with the same file structure as the CLI. This is often not the case in the real world, but I want to show a goal to attain to in your own legacy code.

There is no command as ng init . Can you please confirm the steps you followed. Output from ng init:

The specified command init is invalid. For available options, see ng help.

Solved: Cannot start a project cloned from a repository in, Solved: Hello, I've cloned a project from a friend to my pc and I've tried to run It shows the following message: Do. Do you know how to solve this problem? npm install npm install -g @angular/cli. It should work. This not anything related to github. it is related to the project's How to use Git and GitHub  to get a global install of the latest CLI release. Then running any ng command in the example project will automatically find and use the local build of the CLI.. Note: If you are testing ng update, be aware that installing all the tarballs will also update the framework (@angular/core) to the latest version.

Before running npm install please do the following:

$ npm cache clean --force
$ npm install -g npm

then

$ npm install

Git clone Angular Cli project show that you are not in - jQuery, I followed the basics: git clone https://github.com/codediodeio/ngrx-fire.git ngrxFire cd ngrxFire npm install and than ng serve, show me that I am not in the project  Now the angular-cli you cloned before is in three places: The folder you cloned it into, npm's folder where it stores global packages and the Angular CLI project you just created. You can also use ng new foo --link-cli to automatically link the @angular/cli package.

Adding angular-cli to existing project? On using ng init · Issue #755 , git clone https://github.com/angular/quickstart.git quickstart You have to be inside an angular-cli project in order to use the generate command. 5. After I run ng init there is a /src/app folder that does not have the same  CLI tool for Angular2. Contribute to JFrankfurt/angular-cli development by creating an account on GitHub.

Can we use angular-cli after a project has been already been , a project has been already been created by using git clone of Angular What change did you do on your code? Sign in to view and use the angular-cli inside a project that was not originally created with the angular-cli? Now the angular-cli you cloned before is in three places: The folder you cloned it into, npm's folder where it stores global packages and the Angular CLI project you just created. You can also use ng new foo --link-cli to automatically link the @angular/cli package.

How to Install Angular 2 - Cloning with Git, Learn how to get Angular 2 up by cloning the Angular 2 quickstart In this article, I'll show you a quicker method of getting up and running by cloning Your browser does not currently recognize any of the video formats available. effectively download the quickstart project to your specified project folder. Angular and Git project setup Angular-CLI, VSCode and Git/GitHub configuration I will create Angular 4 client application with project setup needed to seamlessly develop and store source code to remote Github repository.

Comments
  • Have you created src/environments/environment.ts file? By the way, please provide the exact error you get.
  • yes I have and I have figured how to get this running, will post in a second
  • what is your global angular cli version?
  • Latest , always try use the latest when I get into trouble with code