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

ng generate /bin/sh: yarn: command not found #12939

Closed
alan-agius4 opened this issue Nov 12, 2018 · 1 comment · Fixed by #12941
Closed

ng generate /bin/sh: yarn: command not found #12939

alan-agius4 opened this issue Nov 12, 2018 · 1 comment · Fixed by #12941

Comments

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Nov 12, 2018

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

Angular CLI: 7.1.0-beta.1
Node: 11.1.0
OS: darwin x64
Angular: 7.1.0-beta.2
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.11.0-beta.1
@angular-devkit/build-angular     0.11.0-beta.1
@angular-devkit/build-optimizer   0.11.0-beta.1
@angular-devkit/build-webpack     0.11.0-beta.1
@angular-devkit/core              7.1.0-beta.1
@angular-devkit/schematics        7.1.0-beta.1
@angular/cli                      7.1.0-beta.1
@ngtools/webpack                  7.1.0-beta.1
@schematics/angular               7.1.0-beta.1
@schematics/update                0.11.0-beta.1
rxjs                              6.3.3
typescript                        3.1.6
webpack                           4.23.1

Repro steps

ng new projectname
ng g c lazy
ng g m lazy

The log given by the failure

ng generate c lazy
/bin/sh: yarn: command not found
CREATE src/app/lazy/lazy.component.css (0 bytes)
CREATE src/app/lazy/lazy.component.html (23 bytes)
CREATE src/app/lazy/lazy.component.spec.ts (614 bytes)
CREATE src/app/lazy/lazy.component.ts (261 bytes)

ng g m lazy
/bin/sh: yarn: command not found
CREATE src/app/lazy/lazy.module.ts (188 bytes)

This is actually not a failure but it's annoying to have yarn command not found printed in the console.

Desired functionality

/bin/sh: yarn: command not found is not printed in the console.

Mention any other details that might be useful

Yarn is not installed, and I am not using it as a package manager.

@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 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant