Angular-cli: ng run --help not working

Created on 22 May 2018  路  3Comments  路  Source: angular/angular-cli

Moved from https://github.com/angular/devkit/issues/955 by @ampgular


Bug Report or Feature Request (mark with an x)

  • [ X] bug report -> please search issues before submitting
  • [ ] feature request

Area

  • [X ] devkit
  • [ ] schematics

Versions

Angular CLI: 6.0.0
Node: 10.1.0
NPM: 5.6.0
OS: darwin x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.0
@angular-devkit/build-angular     0.6.0
@angular-devkit/build-optimizer   0.6.0
@angular-devkit/core              0.6.0
@angular-devkit/devkit            0.0.0
@angular-devkit/schematics        0.6.3
@angular/platform-server          6.0.2
@ngtools/webpack                  6.0.0
@schematics/angular               0.6.0
@schematics/update                0.6.0
rxjs                              6.1.0
typescript                        2.7.2
webpack                           4.6.0

Repro steps

1- ng new newproject
2 - ng run --help

The log given by the failure

Cannot determine project or target for Architect command.
Error: Cannot determine project or target for Architect command.
at MergeMapSubscriber._loadWorkspaceAndArchitect.pipe.operators_1.concatMap [as project] (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/@angular/cli/models/architect-command.js:75:27)
at MergeMapSubscriber._tryNext (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/operators/mergeMap.js:122:27)
at MergeMapSubscriber._next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/operators/mergeMap.js:112:18)
at MergeMapSubscriber.Subscriber.next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/Subscriber.js:103:18)
at TapSubscriber._next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/operators/tap.js:109:26)
at TapSubscriber.Subscriber.next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/Subscriber.js:103:18)
at MergeMapSubscriber.notifyNext (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/operators/mergeMap.js:141:26)
at InnerSubscriber._next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/InnerSubscriber.js:30:21)
at InnerSubscriber.Subscriber.next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/Subscriber.js:103:18)
at MapSubscriber._next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/operators/map.js:92:26)
at MapSubscriber.Subscriber.next (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/Subscriber.js:103:18)
at MergeMapSubscriber.notifyNext (/Users/Javier/Documents/NuileaWeb/scheTest/node_modules/rxjs/internal/operators/mergeMap.js:141:26).......

Desired functionality

Provide the required help

Mention any other details that might be useful

angulacli medium regression bufix

Most helpful comment

ng run needs a target in the format of project:target and is erroring out because of that. But without checking the help for this command it's hard to know that.

We should show the proper help even if there is no target.

All 3 comments

ng run needs a target in the format of project:target and is erroring out because of that. But without checking the help for this command it's hard to know that.

We should show the proper help even if there is no target.

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

Fixes in 7.0.0-beta.4

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JanStureNielsen picture JanStureNielsen  路  3Comments

ericel picture ericel  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments

naveedahmed1 picture naveedahmed1  路  3Comments