Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/cli): ng command throws error #4776

Closed
0x-r4bbit opened this issue Feb 17, 2017 · 3 comments · Fixed by #4780
Closed

fix(@angular/cli): ng command throws error #4776

0x-r4bbit opened this issue Feb 17, 2017 · 3 comments · Fixed by #4780

Comments

@0x-r4bbit
Copy link

After upgrading to 1.0.0-beta.32.3, running

$ ng

Outputs the following error:

The specified command core-object is invalid. For available options, see `ng help`

Before that version, Angular CLI simply output ng help output. This is probably a bug.

/cc @filipesilva

@kamalkech
Copy link

kamalkech commented Feb 17, 2017

same error here

filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 17, 2017
@kamalkech
Copy link

kamalkech commented Feb 17, 2017

@filipesilva : i update file "cli.js" :

 if (args.length === 0) {
   args[0] = 'help';
 }

But after run any command line like "ng g c nameComponent" the component not generated and i get message help !! :

 ng g c contact
ng build <options...>
  Builds your app and places it into the output path (dist/ by default).
  aliases: b
  --target (String) (Default: development)
    aliases: -t <value>, -dev (--target=development), -prod (--target=production), --target <value>
  --environment (String)
    aliases: -e <value>, --environment <value>
  --output-path (Path)
    aliases: -op <value>, --outputPath <value>
  --aot (Boolean)
    aliases: -aot
  --sourcemap (Boolean)
    aliases: -sm, --sourcemaps, --sourcemap
  --vendor-chunk (Boolean) (Default: true)
    aliases: -vc, --vendorChunk
  --base-href (String)
    aliases: -bh <value>, --baseHref <value>
  --deploy-url (String)
    aliases: -d <value>, --deployUrl <value>
  --verbose (Boolean) (Default: false)
    aliases: -v, --verbose
  --progress (Boolean) (Default: true)
    aliases: -pr, --progress
  --i18n-file (String)
    aliases: --i18nFile <value>
  --i18n-format (String)
    aliases: --i18nFormat <value>
  --locale (String)
    aliases: --locale <value>
  --extract-css (Boolean)
    aliases: -ec, --extractCss

asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this issue Apr 12, 2017
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants