Skip to content

ng7 can not generate new project #12215

@wszgrcy

Description

@wszgrcy

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Repro steps

The log given by the failure

PS D:\test> ng test
The test command requires to be run in an Angular project, but a project definition could not be found.
PS D:\test> ng new ng7
The new command requires to be run outside of a project, but a project definition was found at "D:\test".
PS D:\test> ng v

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 7.0.0-beta.2
Node: 8.11.4
OS: win32 x64
Angular:
...

Package Version

@angular-devkit/architect 0.9.0-beta.2
@angular-devkit/core 0.9.0-beta.2
@angular-devkit/schematics 0.9.0-beta.2
@schematics/angular 0.9.0-beta.2
@schematics/update 0.9.0-beta.2
rxjs 6.2.2
typescript 3.0.3

PS D:\test>

Desired functionality

why I run ng test it hint requires to be run in and ng new it hint requires to be run outside

Mention any other details that might be useful

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