question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
clydincommented, May 16, 2018

Is yarn configured as the default package manager for the CLI? If so the version of yarn is most likely outdated.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ng new angular, error angular cli unknown option --silent ...
I am trying to create a new angular cli project but it shows me error when I am creating one with ng new...
Read more >
ng lint - Angular
Runs linting tools on Angular application code in a given project folder. ng lint [ project ] ... Option, Description, Value Type, Default...
Read more >
Angular CLI - Quick Guide - Tutorialspoint
Angular CLI - ng new Command. This chapter explains the syntax, argument and options of ng new command along with an example.
Read more >
[Solved]-Angular CLI command issue: "Unknown option: '--spec'"
In the old version of angular, it's was working right but in the new version this not working with me anymore. Abd Abughazaleh...
Read more >
@angular/cli | Yarn - Package Manager
@angular/cli ; 8a396de6a, fix, print entire config when no positional args are provided to ng config ; bdf2b9bfa, fix, print schematic errors correctly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found