angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Adding angular-cli to existing project? On using ng init

Open ghost opened this issue 10 years ago • 28 comments

_> Please provide us with the following information:


  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)_

Windows 10

2. Versions. Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version And paste the result here. angular-cli: 0.1.0 node: 4.2.1 os: win32 x64

3. Repro steps. Was this an app that wasn't created using the CLI? What change did you do on your code? etc. Create an Angular 2 project without angular-cli, for example: git clone https://github.com/angular/quickstart.git quickstart cd quickstart npm install npm install angular-cli ng **???? -- how to add angular-cli to project at this point?**

To make that project use angular-cli for commands like: ng generate route magazines

4. The log given by the failure. Normally this include a stack trace and some more information.

You have to be inside an angular-cli project in order to use the generate command.

5. Mention any other details that might be useful.

Apologies if this is a duplicate, looking for answers in doc and SO.


Thanks! We'll be in touch soon.

ghost avatar May 13 '16 13:05 ghost

hey can you please tell me how to add angular 2 component into existing java web application project.
i created angular 2 component and now i want to add it into java project. please i need help for these issue.

FlameStriker avatar Jul 07 '17 09:07 FlameStriker

ng init no longer works

here is the solution

https://github.com/angular/angular-cli/issues/5431

ORESoftware avatar Jan 05 '18 22:01 ORESoftware

you can use yarn package manager to install angular-cli or other dependencies to the existing project.

rawatnaresh avatar Sep 25 '18 04:09 rawatnaresh

please i need help i have to run exiting angular cli project with client server so i'm stacking how to do that i test some command but i still don't have solution

brahimdev avatar Mar 17 '19 16:03 brahimdev

For me npm install did the thing.

muneebshafiq avatar Aug 22 '19 12:08 muneebshafiq

i m making a dist folder but inside dist folder one more folder is build by own which is present in my system how to remove this.....?????

Priyanka1234512345 avatar Oct 17 '19 09:10 Priyanka1234512345

@nbora98 Can you please explain the src folder I have "project>fuse>e2e-node_module-src-browserlistrc-editorconfig...." How to open the existing project has enclosed in the given above folder. Thanks for posting the solution to existing project.

Step 5. Copy the '/src' folder of your existing project and replace with the '/src' of your newly created project from Project's root folder only.

Balarama888 avatar Feb 26 '21 12:02 Balarama888

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.