Adding angular-cli to existing project? On using ng init
_> Please provide us with the following information:
- 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.
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.
ng init no longer works
here is the solution
https://github.com/angular/angular-cli/issues/5431
you can use yarn package manager to install angular-cli or other dependencies to the existing project.
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
For me npm install did the thing.
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.....?????
@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.
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.