Skip to content

Unable to find "@angular/cli" in devDependencies #5616

@Ionaru

Description

@Ionaru

Bug Report or Feature Request (mark with an x)

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

Versions.

@angular/cli: 1.0.0
node: 7.7.3
os: linux x64

Repro steps.

sudo yarn global upgrade @angular/cli

sudo yarn global remove @angular/cli
sudo yarn global add @angular/cli

Run any ng command

The log given by the failure.

Unable to find "@angular/cli" in devDependencies.

Please take the following steps to avoid issues:
"npm install --save-dev @angular/cli@latest"

Desired functionality.

ng command runs without issues.

Mention any other details that might be useful.

I am not sure this is related, but all new Angular apps I create using the CLI appear in the Home directory instead of the directory the command was run in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfreq1: lowOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions