yarn: command not found
rajinder-yadav opened this issue · 1 comments
rajinder-yadav commented
Command
new
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
no idea
Description
Why should I have "yarn" install to use angular cli?
Please fix so I don't need to install yarn to create a project using 'ng new'.
? Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No
CREATE demo/README.md (1058 bytes)
CREATE demo/.editorconfig (274 bytes)
CREATE demo/.gitignore (587 bytes)
CREATE demo/angular.json (2582 bytes)
CREATE demo/package.json (1035 bytes)
CREATE demo/tsconfig.json (857 bytes)
CREATE demo/tsconfig.app.json (263 bytes)
CREATE demo/tsconfig.spec.json (273 bytes)
CREATE demo/.vscode/extensions.json (130 bytes)
CREATE demo/.vscode/launch.json (470 bytes)
CREATE demo/.vscode/tasks.json (938 bytes)
CREATE demo/src/main.ts (250 bytes)
CREATE demo/src/favicon.ico (15086 bytes)
CREATE demo/src/index.html (290 bytes)
CREATE demo/src/styles.css (80 bytes)
CREATE demo/src/app/app.component.css (0 bytes)
CREATE demo/src/app/app.component.html (19903 bytes)
CREATE demo/src/app/app.component.spec.ts (910 bytes)
CREATE demo/src/app/app.component.ts (300 bytes)
CREATE demo/src/app/app.config.ts (227 bytes)
CREATE demo/src/app/app.routes.ts (77 bytes)
CREATE demo/src/assets/.gitkeep (0 bytes)
⠋ Installing packages (yarn).../bin/sh: line 1: yarn: command not found
✖ Package install failed, see above.
$ npm -v
10.7.0
$ node -v
v20.13.0
Minimal Reproduction
dfgddfg
Exception or Error
⠋ Installing packages (yarn).../bin/sh: line 1: yarn: command not found
Your Environment
$ ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 17.3.7
Node: 20.13.0
Package Manager: yarn <error>
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1703.7 (cli-only)
@angular-devkit/core 17.3.7 (cli-only)
@angular-devkit/schematics 17.3.7 (cli-only)
@schematics/angular 17.3.7 (cli-only)
Anything else relevant?
dfgdfg
alan-agius4 commented
Likely you have configured the Angular CLI to use yarn as manager manager.
You can check by using ng config -g cli.packageManager
, to unset the value use ng config -g cli.packageManager undefined
.