LoginSignup
0
0

More than 3 years have passed since last update.

Flutterアップデート際にExpand-Archiveのエラーが発生Dartアップデートが失敗する件

Posted at

環境

  • Windows 10 (1809)
  • Flutter
    • Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision 7a4c33425d (5 weeks ago) • 2019-04-29 11:05:24 -0700 Engine • revision 52c7a1e849 Tools • Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

事象

  • Flutterのアップグレード際に下記のようなエラーメッセージが生じました。
Expand-Archive : パラメーター名 'DestinationPath' に一致するパラメーターが見つか
りません。
発生場所 C:\flutter\bin\internal\update_dart_sdk.ps1:77 文字:32
+     Expand-Archive $dartSdkZip -DestinationPath $cachePath
+                                ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Expand-Archive]、ParentContai
    nsErrorRecordException
    + FullyQualifiedErrorId : NamedParameterNotFound,Pscx.Commands.IO.Compressio
   n.ExpandArchiveCommand

Error: Unable to update Dart SDK. Retrying...

3 秒待っています。終了するには CTRL+C を押してください ...

対策

  • 「update_dart_sdk.ps1」を開いて、編集します。
#Expand-Archive $dartSdkZip -DestinationPath $cachePath
#Flutterのキャッシュフォルダに移動する
 Push-Location -Path $cachePath 
#Dart-sdkのZipファイルを解凍する
 Expand-Archive $dartSdkZip
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0