Skip to content

ng update failed Package '@angular/clie' is not a dependency.Β #21363

Closed
@gurezo

Description

@gurezo

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

yes, excute ng update command

Description

➜  portfolio git:(feature/next) ng update @angular/clie@12.2.0-next.2 --force
Using package manager: 'npm'
Collecting installed dependencies...
Found 0 dependencies.
Package '@angular/clie' is not a dependency.
➜  portfolio git:(feature/next)

🌍 Your Environment

i had already global install @angular/clie@12.2.0-next.2


➜  portfolio git:(feature/next) cd ~
➜  ~ npm -v
7.20.0
➜  ~ node -v
v14.17.3
➜  ~ ng --version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 12.2.0-next.2
Node: 14.17.3
Package Manager: npm 7.20.0
OS: darwin x64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1202.0-next.2 (cli-only)
@angular-devkit/core         12.2.0-next.2 (cli-only)
@angular-devkit/schematics   12.2.0-next.2 (cli-only)
@schematics/angular          12.2.0-next.2 (cli-only)

➜  ~


my package.json

{
  "name": "portfolio",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve --open",
    "debug": "ng serve",
    "build": "ng build --configuration production",
    "build:local": "ng build --configuration production --base-href / --deploy-url /",
    "build:prod": "ng build --configuration production --deploy-url /",
    "deploy": "ng build --configuration production && firebase deploy",
    "test:browser": "ng test",
    "test:": "ng test --watch=false --code-coverage --browsers=ChromeHeadless",
    "lint": "ng lint",
    "lint:sass": "./node_modules/sass-lint/bin/sass-lint.js -c sass-lint.yml -v -q",
    "e2e": "ng e2e",
    "build:stats": "ng build --configuration production --stats-json",
    "build:spec": "tsc --project tsconfig.spec.json",
    "bundle-stats": "webpack-bundle-analyzer dist/stats.json"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^12.2.0-next.0",
    "@angular/cdk": "^12.1.1",
    "@angular/common": "^12.2.0-next.0",
    "@angular/compiler": "^12.2.0-next.0",
    "@angular/core": "^12.2.0-next.0",
    "@angular/fire": "^6.1.5",
    "@angular/forms": "^12.2.0-next.0",
    "@angular/material": "^12.1.1",
    "@angular/platform-browser": "^12.2.0-next.0",
    "@angular/platform-browser-dynamic": "^12.2.0-next.0",
    "@angular/router": "^12.2.0-next.0",
    "animate.css": "^3.7.2",
    "classlist.js": "1.1.20150312",
    "core-js": "^3.14.0",
    "firebase": "^8.6.5",
    "material-design-icons": "^3.0.1",
    "rxjs": "~6.6.7",
    "tslib": "^2.2.0",
    "web-animations-js": "^2.3.2",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/architect": "~0.1202.0-next.0",
    "@angular-devkit/build-angular": "~12.2.0-next.0",
    "@angular/cli": "^12.2.0-next.0",
    "@angular/compiler-cli": "^12.2.0-next.0",
    "@angular/language-service": "^12.2.0-next.0",
    "@types/jasmine": "~3.7.7",
    "@types/jasminewd2": "~2.0.9",
    "@types/jquery": "3.5.5",
    "@types/node": "~15.12.1",
    "codelyzer": "^6.0.2",
    "concurrently": "6.2.0",
    "firebase-tools": "^9.12.1",
    "fuzzy": "^0.1.3",
    "inquirer": "^8.1.0",
    "inquirer-autocomplete-prompt": "^1.3.0",
    "jasmine-core": "~3.7.1",
    "jasmine-spec-reporter": "~7.0.0",
    "karma": "~6.3.3",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.3",
    "karma-edge-launcher": "0.4.2",
    "karma-firefox-launcher": "2.1.1",
    "karma-ie-launcher": "1.0.0",
    "karma-jasmine": "~4.0.1",
    "karma-jasmine-html-reporter": "^1.6.0",
    "protractor": "~7.0.0",
    "sass-lint": "^1.13.1",
    "ts-node": "~10.0.0",
    "tslint": "~6.1.0",
    "typescript": "~4.2.4",
    "webpack-bundle-analyzer": "^4.4.2"
  }
}

Anything else relevant?

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