Skip to content

Error on "ng new ..." - unknown option `--silent' #10428

@petdud

Description

@petdud

Hi,

I am trying to create a new project with @angular/cli but it fails. Two days ago it was working with no issue and since that something broken and I can't figure what I did or why it does broken and there is nothing in Google regarding this issue. When creating new project with ng new projectname, it shows error right behind generating app.component.ts

error: unknown option `--silent'
Error: Package install failed, see above.
Package install failed, see above.

Here is the log:

$ ng new lala
  create lala/README.md (1020 bytes)
  create lala/.angular-cli.json (1239 bytes)
  create lala/.editorconfig (245 bytes)
  create lala/.gitignore (544 bytes)
  create lala/src/assets/.gitkeep (0 bytes)
  create lala/src/environments/environment.prod.ts (51 bytes)
  create lala/src/environments/environment.ts (387 bytes)
  create lala/src/favicon.ico (5430 bytes)
  create lala/src/index.html (291 bytes)
  create lala/src/main.ts (370 bytes)
  create lala/src/polyfills.ts (3114 bytes)
  create lala/src/styles.css (80 bytes)
  create lala/src/test.ts (642 bytes)
  create lala/src/tsconfig.app.json (211 bytes)
  create lala/src/tsconfig.spec.json (283 bytes)
  create lala/src/typings.d.ts (104 bytes)
  create lala/e2e/app.e2e-spec.ts (286 bytes)
  create lala/e2e/app.po.ts (208 bytes)
  create lala/e2e/tsconfig.e2e.json (235 bytes)
  create lala/karma.conf.js (923 bytes)
  create lala/package.json (1289 bytes)
  create lala/protractor.conf.js (722 bytes)
  create lala/tsconfig.json (363 bytes)
  create lala/tslint.json (3012 bytes)
  create lala/src/app/app.module.ts (316 bytes)
  create lala/src/app/app.component.css (0 bytes)
  create lala/src/app/app.component.html (1141 bytes)
  create lala/src/app/app.component.spec.ts (986 bytes)
  create lala/src/app/app.component.ts (207 bytes)

  error: unknown option `--silent'

Error: Package install failed, see above.
Package install failed, see above.

Angular CLI: 1.7.4
Node: 9.11.1
OS: darwin x64 [MAC High Sierra 10.13.2]
npm: 5.6.0

Thank you for your help.

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