angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng help shows ember as the command instead of ng (Angular CLI 1.0.0-beta.24)

Open exequiel09 opened this issue 9 years ago • 16 comments

OS

macOS 10.12.2 Node 6.9.2

Versions.

1.0.0-beta.24

Repro steps.

Just execute ng help and it shows the help list with the ember as the command. Previous versions show ng instead of ember

The log given by the failure.

N/A

Mention any other details that might be useful.

screen shot 2016-12-21 at 7 11 19 pm

exequiel09 avatar Dec 21 '16 11:12 exequiel09

I'm seeing the same thing. And when I type ng new test for example, I get the following error: "You cannot use the new command inside an ember-cli project."

ng --version produces: ng --version angular-cli: 1.0.0-beta.24 node: 6.9.1 os: darwin x64 @angular/common: 2.2.1 @angular/compiler: 2.2.1 @angular/core: 2.2.1 @angular/forms: 2.2.1 @angular/http: 2.2.1 @angular/platform-browser: 2.2.1 @angular/platform-browser-dynamic: 2.2.1 @angular/router: 3.2.1 @angular/compiler-cli: 2.2.1

ng help produces:

ng help ember build <options...> Builds your app and places it into the output path (dist/ by default). aliases: b --target (String) (Default: development) aliases: -t , -dev (--target=development), -prod (--target=production) --environment (String) (Default: ) aliases: -e --output-path (Path) (Default: null) aliases: -o --watch (Boolean) (Default: false) aliases: -w --watcher (String) --suppress-sizes (Boolean) (Default: false) --base-href (String) (Default: null) aliases: -bh --aot (Boolean) (Default: false) --sourcemap (Boolean) (Default: true) aliases: -sm --vendor-chunk (Boolean) (Default: true) --verbose (Boolean) (Default: false) --progress (Boolean) (Default: true) --i18n-file (String) (Default: null) --i18n-format (String) (Default: null) --locale (String) (Default: null)

ember completion Adds autocomplete functionality to ng commands and subcommands

ember doc Opens the official Angular documentation for a given keyword.

ember e2e Run e2e tests in existing project

ember generate <options...> Generates new code from blueprints. aliases: g --dry-run (Boolean) (Default: false) aliases: -d --verbose (Boolean) (Default: false) aliases: -v --pod (Boolean) (Default: false) aliases: -p --classic (Boolean) (Default: false) aliases: -c --dummy (Boolean) (Default: false) aliases: -dum, -id --in-repo-addon (String) (Default: null) aliases: --in-repo , -ir

ember get Get a value from the configuration.

ember help <command-name (Default: all)> Shows help for the CLI

ember init <options...> Creates a new angular-cli project in the current folder. aliases: i --dry-run (Boolean) (Default: false) aliases: -d --verbose (Boolean) (Default: false) aliases: -v --link-cli (Boolean) (Default: false) aliases: -lc --skip-npm (Boolean) (Default: false) aliases: -sn --name (String) (Default: ) aliases: -n --source-dir (String) (Default: src) aliases: -sd --style (String) (Default: css) --prefix (String) (Default: app) aliases: -p --mobile (Boolean) (Default: false) --routing (Boolean) (Default: false) --inline-style (Boolean) (Default: false) aliases: -is --inline-template (Boolean) (Default: false) aliases: -it

ember lint Lints code in existing project

ember new <options...> Creates a new directory and runs ng init in it. --dry-run (Boolean) (Default: false) aliases: -d --verbose (Boolean) (Default: false) aliases: -v --link-cli (Boolean) (Default: false) aliases: -lc --skip-npm (Boolean) (Default: false) aliases: -sn --skip-git (Boolean) (Default: false) aliases: -sg --directory (String) aliases: -dir --source-dir (String) (Default: src) aliases: -sd --style (String) (Default: css) --prefix (String) (Default: app) aliases: -p --mobile (Boolean) (Default: false) --routing (Boolean) (Default: false) --inline-style (Boolean) (Default: false) aliases: -is --inline-template (Boolean) (Default: false) aliases: -it

ember serve <options...> Builds and serves your app, rebuilding on file changes. aliases: server, s --port (Number) (Default: 4200) aliases: -p --host (String) (Default: localhost) Listens only on localhost by default aliases: -H --proxy-config (Path) aliases: -pc --watcher (String) (Default: events) aliases: -w --live-reload (Boolean) (Default: true) aliases: -lr --live-reload-host (String) Defaults to host aliases: -lrh --live-reload-base-url (String) Defaults to baseURL aliases: -lrbu --live-reload-port (Number) (Defaults to port number within [49152...65535]) aliases: -lrp --live-reload-live-css (Boolean) (Default: true) Whether to live reload CSS (default true) --target (String) (Default: development) aliases: -t , -dev (--target=development), -prod (--target=production) --environment (String) (Default: ) aliases: -e --ssl (Boolean) (Default: false) --ssl-key (String) (Default: ssl/server.key) --ssl-cert (String) (Default: ssl/server.crt) --aot (Boolean) (Default: false) --sourcemap (Boolean) (Default: true) aliases: -sm --vendor-chunk (Boolean) (Default: true) --verbose (Boolean) (Default: false) --progress (Boolean) (Default: true) --open (Boolean) (Default: false) Opens the url in default browser aliases: -o --hmr (Boolean) (Default: false) Enable hot module replacement --i18n-file (String) (Default: null) --i18n-format (String) (Default: null) --locale (String) (Default: null)

ember set <options...> Set a value in the configuration. --global (Boolean) (Default: false) aliases: -g

ember test <options...> Runs your app's test suite. aliases: t --watch (Boolean) (Default: true) aliases: -w --code-coverage (Boolean) (Default: false) aliases: -cc --lint (Boolean) (Default: false) aliases: -l --single-run (Boolean) (Default: false) aliases: -sr --progress (Boolean) (Default: true) --browsers (String) --colors (Boolean) --log-level (String) --port (Number) --reporters (String) --build (Boolean) (Default: true) --sourcemap (Boolean) (Default: true) aliases: -sm

ember version <options...> outputs angular-cli version aliases: v, --version, -v --verbose (Boolean) (Default: false)

deecm22 avatar Dec 21 '16 15:12 deecm22

I have the same output, daco$ ng help ember build <options...> And when I try to ng serve, I get "You have to be inside an ember-cli project in order to use the serve command." This is after I've upgraded from beta.18 to beta.24

daco avatar Dec 21 '16 16:12 daco

Same happens in windows7 OS. I have submitted a #3687 to fix it.

Below is the output from my Local:

screen shot 2016-12-21 at 11 56 04 pm

CarreraPHP avatar Dec 21 '16 18:12 CarreraPHP

#3688 has the code changes done in #3687(closed) & it has been merged. This issue can be closed.

CarreraPHP avatar Dec 22 '16 06:12 CarreraPHP

Thanks @CarreraPHP. Refer to @CarreraPHP statement above for more information. Closing this issue.

exequiel09 avatar Dec 22 '16 06:12 exequiel09

Hi,

Still have the issue: "You have to be inside an ember-cli project in order to use the generate command"

when installing from npm.

Regards, Nicolas

nstubi avatar Jan 04 '17 13:01 nstubi

@nstubi They have not yet published the version which fixes this. So wait for the next version to be released.

exequiel09 avatar Jan 04 '17 13:01 exequiel09

noted @exequiel09, thanks.

nstubi avatar Jan 04 '17 13:01 nstubi

Just to be clear, I called out two specific issues in my comment above. I see a lot of talk about the alias issue being fixed but I do not see this as a technical issue. The technical issue is that I am getting an error message from the CLI saying that "You cannot use the new command inside an ember-cli project." I am certain that I am not inside an ember-cli project as I have created a random folder on my desktop and tried running the "ng new test" command and get this specific error. This does not happen on my windows 8 machine. Only on my mac.

deecm22 avatar Jan 10 '17 13:01 deecm22

@deecm22 on version 1.0.0-beta.24 creating a new project in an empty folder should just work. If not, could you please create a separate issue with the exact test-steps you take?

Thanks!

beeman avatar Jan 10 '17 14:01 beeman

so when is beta.25 releasing?

rajdeep26 avatar Jan 12 '17 10:01 rajdeep26

I'm also facing same error. Getting to see the ember help commans when i type ng help. What is the fix for now? User lower version? If yes, which?

rajdeep26 avatar Jan 12 '17 10:01 rajdeep26

@rajdeep26 beta 25 got released today.

beeman avatar Jan 13 '17 03:01 beeman

Thanks @beeman. Will check it out

rajdeep26 avatar Jan 13 '17 06:01 rajdeep26

Do we need to completely remove the old version or will just upgrade suffice to have a proper working environment?

adammendoza avatar Jan 13 '17 20:01 adammendoza

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.