راکت

مشکل در هنگام ران کردن فلاتر

6 پاسخ

سلام دوستان
من چند وقت پیش فلاتر رو شروع کرده بودم به آموزش و الان بعد چند وقت اومدم دوباره شروعش کنم اما موقعی که دستور flutter doctor رو میزنم این ارور رو بهم میده کسی میدونه مشکل کجاست؟

The term 'Unblock-File' is not recognized as the name of a cmdlet, function, sc
ript file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:۱ char:۱۳
+ Unblock-File <<<<  -Path 'C:\src\flutter/bin/internal/update_dart_sdk.ps۱'; &
 'C:\src\flutter/bin/internal/update_dart_sdk.ps۱'
    + CategoryInfo          : ObjectNotFound: (Unblock-File:String) [], Comman
   dNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

@Alimotreb
@ali.bayat
@hesammousavi
@khanzadimahdi
@milad
@ali.farmani

ثبت پرسش جدید

پاسخ‌ها

6
الیاس سخاوتی نیا
الیاس سخاوتی نیا
@elyassir

تخصص: علاقه‌مند به برنامه‌‎نویسی

سلام
مسیر پوشه flutter\bin رو به درستی به path سیستم دادین؟
از cmd استفاده کردین یا PowerShell ؟

امیر اخروی
امیر اخروی
@Amirokhravi

تخصص: برنامه نویس فرانت اند و سئو و دیجیتال مارکتینگ

بله همه چی درسته
از cmd استفاده کردم

شاید پاسخ شما همین‌جا باشد

امیر اخروی
امیر اخروی
@Amirokhravi

تخصص: برنامه نویس فرانت اند و سئو و دیجیتال مارکتینگ

سلام هنوز کسی نفهمید ارور برای چیه؟

Alimotreb
Alimotreb
@Alimotreb

تخصص: کانفیگ سرور و برنامه نویس

سلام

+ Unblock-File <<<<  -Path 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'; &
 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'
    + CategoryInfo          : ObjectNotFound: (Unblock-File:String) [], Comman

آدرس مسیر هاتون اشتباه هست یکم یه جاش با / یه جا با \
بررسیش کنید

امیر اخروی
امیر اخروی
@Amirokhravi

تخصص: برنامه نویس فرانت اند و سئو و دیجیتال مارکتینگ

@Alimotreb
بله چک کردم همه ی آدرس هایی که در environment variables گذاشتم دارای \ هستش و مشکلی نداره بذارید متن کل ارور رو بذارم

The term 'Unblock-File' is not recognized as the name of a cmdlet, function, sc
ript file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:1 char:13
+ Unblock-File <<<<  -Path 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'; &
 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'
    + CategoryInfo          : ObjectNotFound: (Unblock-File:String) [], Comman
   dNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Flutter requires PowerShell 5.0 or newer.
See https://flutter.dev/docs/get-started/install/windows for more.
Building flutter tool...
Running pub upgrade...
The current Dart SDK version is 2.1.0-dev.5.0.flutter-a2eb050044.

Because flutter_tools requires SDK version >=2.2.2 <3.0.0, version solving
  failed.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9
tries left)

این متن کل ارور هستش ببینید چیزی متوجه میشید؟

امیر اخروی
امیر اخروی
@Amirokhravi

تخصص: برنامه نویس فرانت اند و سئو و دیجیتال مارکتینگ

دوستان این آدرس هست گیتهاب رو ببینید چیزی ازش میفهمید که اررو من رو حل کنه ؟
https://github.com/flutter/flutter/issues/30657
و این آدرس
https://github.com/flutter/flutter/issues/22802
این هم متن ارور

The term 'Unblock-File' is not recognized as the name of a cmdlet, function, sc
ript file, or operable program. Check the spelling of the name, or if a path wa
s included, verify that the path is correct and try again.
At line:1 char:13
+ Unblock-File <<<<  -Path 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'; &
 'C:\src\flutter/bin/internal/update_dart_sdk.ps1'
    + CategoryInfo          : ObjectNotFound: (Unblock-File:String) [], Comman
   dNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Flutter requires PowerShell 5.0 or newer.
See https://flutter.dev/docs/get-started/install/windows for more.
Building flutter tool...
Running pub upgrade...
The current Dart SDK version is 2.1.0-dev.5.0.flutter-a2eb050044.

Because flutter_tools requires SDK version >=2.2.2 <3.0.0, version solving
  failed.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9
tries left)

فکر میکنم ادرس هایی که گذاشتم مشکلم رو حل میکنه ولی خودم که دیدم چیزی نفهمیدم خیلی میخواستم کسانی که تو فلاتر متخصص ترن یا کلا واردن ببین اینا رو

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام