Skip to content

NG HELP / ERROR #4794

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

Closed
kamalkech opened this issue Feb 17, 2017 · 6 comments
Closed

NG HELP / ERROR #4794

kamalkech opened this issue Feb 17, 2017 · 6 comments

Comments

@kamalkech
Copy link

OS?

Windows 10

Versions.

node : v6.9.5
npm : 3.10.10

Repro steps.

after run "ng help" i got this error :
The specified command core-object is invalid. For available options, see ng help.

any idea ??

@filipesilva
Copy link
Contributor

Dupe of #4776

@kamalkech
Copy link
Author

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

@filipesilva
Copy link
Contributor

@kamalkech I don't recommend manually changing the package files unless you know what you're doing.

@kamalkech
Copy link
Author

@filipesilva i update to last version and same issue

@filipesilva
Copy link
Contributor

This issue isn't fixed yet. When it is fixed it will be released on the next version. Meanwhile you can use ng help instead of just ng.

@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

No branches or pull requests

2 participants