Skip to content

ng config --global needs a project #12296

Closed
@anthonybriand

Description

@anthonybriand

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Command (mark with an x)

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

Versions

  • Node : 9.7.1
  • Npm : 6.3.0
  • Ng : 6.2.2
  • macOS High Sierra : 10.13.6

Repro steps

Install @angular/cli globally and run :

ng config -g cli.packageManager yarn
# or
ng config cli.packageManager yarn -g
# or
ng config cli.packageManager yarn --global

The log given by the failure

The command simply returns :

This command can only be run inside of a CLI project.

Desired functionality

Before, this command doesn't needs a project to apply a global config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions