ionic-team / ionic-team/ionic-cli

Incompatible option for yarn v2

Đang mở
#4,483 8 bình luận 4 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description:**
`ionic start` command broken with Yarn v2 (aka berry).

**Steps to Reproduce:**
```bash
$ yarn set version berry
$ echo n | ionic start Test blank --type=angular
```
Or even:
```bash
$ yarn set version berry
$ echo n | yarn dlx -p @ionic/cli ionic start Test blank --type=angular
```

**Output:**
```
> yarn install --non-interactive
Unknown Syntax Error: Unsupported option name ("--non-interactive").

$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds]
[ERROR] An error occurred while running subprocess yarn.

yarn install --non-interactive exited with exit code 1.

Re-running this command with the --verbose flag may provide more
information.
```

**My `ionic info`:**
```
[WARN] You are not in an Ionic project directory. Project context may be missing.
Ionic:
Ionic CLI : 6.10.1
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v14.5.0
npm : 6.14.5
OS : Linux 5.7
```

**Other Information:**
Migration guide: https://yarnpkg.com/advanced/migration

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.