Skip to content

NodePackageInstallTask not triggered after app generation #12719

Closed
@klemenoslaj

Description

@klemenoslaj

Bug Report or Feature Request (mark with an x)

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

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

node: v8.12.0
npm: 6.4.1
yarn: 1.10.1

Angular CLI:
@angular-devkit/architect 0.10.2
@angular-devkit/core 7.0.2
@angular-devkit/schematics 7.0.2
@angular/cli 7.0.2
@schematics/angular 7.0.2
@schematics/update 0.10.2
rxjs 6.3.3
typescript 3.1.3

Repro steps

Execute the following commands in the exact order:

  • ng new foo --create-application false --routing false --style css
  • cd foo
  • ng g app playground
    • notice here that package.json was updated but package manager was not triggered
  • ng serve - Failure

Simply running package manager of choice after will resolve the issue.

The log given by the failure

After ng serve is triggered Angular CLI correctly reports the following error:
Could not find module "@angular-devkit/build-angular" from "/Relative/path/to/workspace".

Desired functionality

The same as with library schematic, NodePackageInstallTask should be executed as the last task.
Probably --skip-install flag in the schema would equally make sense.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions