Skip to content

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

Closed
@ghost

Description

_> 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions