質問編集履歴

3

文章を修正

2022/03/13 05:02

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,7 @@
1
1
  提示コードですが以下のコンソールのエラーの対処方法がわかりません。エラコード`requires nesbot/carbon 2.0.0-beta.2 as 1.25.0 `にあるとおり1.25.0にバージョンを合わせたのですが同じエラー出ます。原因がわかりません。
2
+ ルートcomposer.jsonにはkylekatarnls/laravel-carbon-20.1.0が必要ですとありますがそれは既にjsonファイルに追加済みですなぜでしょうか?また"nesbot/carbon": "2.0.0-beta.2"としてみましたが別のエラー出ますがこれは正しいのでしょうか?
3
+
4
+
2
5
 
3
6
  参考サイト:https://packagist.org/packages/nesbot/carbon#1.25.0
4
7
  参考サイト:https://packagist.org/packages/kylekatarnls/laravel-carbon-2#0.1.0
@@ -57,3 +60,35 @@
57
60
  shigurechan@shigurechan-System-Product-Name:~/prg/html/vendor/bin$
58
61
 
59
62
  ```
63
+
64
+ ##### "nesbot/carbon": "2.0.0-beta.2"
65
+
66
+ ```
67
+ shigurechan@shigurechan-System-Product-Name:~/prg/html/vendor/bin$ composer update
68
+ No composer.json in current directory, do you want to use the one at /home/shigurechan/prg/html? [Y,n]? Y
69
+ Always want to use the parent dir? Use "composer config --global use-parent-dir true" to change the default.
70
+ Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.
71
+ Loading composer repositories with package information
72
+ Updating dependencies
73
+ Your requirements could not be resolved to an installable set of packages.
74
+
75
+ Problem 1
76
+ - laravel/framework[v5.5.0, ..., v5.5.38] require nesbot/carbon ~1.20 -> found nesbot/carbon[1.20.0, ..., 1.39.1] but it conflicts with your root composer.json require (2.0.0-beta.2).
77
+ - laravel/framework[v5.5.39, ..., v5.5.44] require nesbot/carbon ^1.24.1 -> found nesbot/carbon[1.24.1, ..., 1.39.1] but it conflicts with your root composer.json require (2.0.0-beta.2).
78
+ - laravel/framework[v5.5.45, ..., v5.5.50] require nesbot/carbon ^1.26.0 -> found nesbot/carbon[1.26.0, ..., 1.39.1] but it conflicts with your root composer.json require (2.0.0-beta.2).
79
+ - laravel/laravel v5.5.28 requires laravel/framework 5.5.* -> satisfiable by laravel/framework[v5.5.0, ..., v5.5.50].
80
+ - Root composer.json requires laravel/laravel 5.5.28 -> satisfiable by laravel/laravel[v5.5.28].
81
+
82
+ Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
83
+
84
+ ```
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+

2

文章を修正

2022/03/13 04:03

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -29,6 +29,16 @@
29
29
  }
30
30
  }
31
31
  ```
32
+ ##### 日本語訳
33
+ ```
34
+ 問題1
35
+ -ルートcomposer.jsonにはkylekatarnls/laravel-carbon-20.1.0が必要です->kylekatarnls/laravel-carbon-2[0.1.0]で満足できます。
36
+ --kylekatarnls /laravel-carbon-20.1.0では1.25.0としてnesbot/carbon2.0.0-beta.2が必要です->nesbot/ carbon [2.0.0-beta.2]が見つかりましたが、最小安定性と一致しません 。
37
+
38
+ オプション--with-all-dependencies(-W)を使用して、現在特定のバージョンにロックされているパッケージのアップグレード、ダウングレード、および削除を許可します。
39
+ ```
40
+
41
+
32
42
 
33
43
  ```
34
44
  shigurechan@shigurechan-System-Product-Name:~/prg/html/vendor/bin$ composer -W update

1

文章を修正

2022/03/13 03:50

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- comporser [ but it does not match your minimum-stability ] の原因が知りたい
1
+ comporser  エラーコード通りバージョンを合わせても同じエラーが出る原因が知りたい
test CHANGED
File without changes