رونمایی از پخته‌ترین و کاربردی‌ترین محصولات آموزشی سون‌لرن با کلی آفرهای ویژه🔥
۰ ثانیه
۰ دقیقه
۰ ساعت
۳ مینا قره داغی
خطا در نصب fluttergen
جامعه فلاتر ایجاد شده در ۱۹ فروردین ۱۴۰۲

در terminal که کد برا نصب کد

dart pub global activate flutter_gen

میزنم خطای زیر رو میده

pub global activate flutter_gen

Package flutter_gen is currently active at version 5.2.0.

Resolving dependencies...

The package flutter_gen is already activated at newest available version.

To recompile executables, first run `dart pub global deactivate flutter_gen`.

Installed executable fluttergen.

Warning: Pub installs executables into C:\\Users\\Internet Naiyeri\\AppData\\Local\\Pub\\Cache\\bin, which is not on your path.

You can fix that by adding that directory to your system's "Path" environment variable.    

A web search for "configure windows path" will show you how.

Activated flutter_gen 5.2.0.

ممنون میشم راهنمایی کنید

بعد که fluttergen رو میزنم تو terminal خطای زیر رو میده

fluttergen : The term 'fluttergen' is not recognized as the name of a cmdlet, function, 

script file, or operable program. Check the spelling of the name, or if a path was

included, verify that the path is correct and try again.

At line:1 char:1

+ fluttergen

+ ~~~~~~~~~~

  + CategoryInfo     : ObjectNotFound: (fluttergen:String) [], CommandNotFoundExcept  

  ion

  + FullyQualifiedErrorId : CommandNotFoundException

مینا قره داغی ۱۹ فروردین ۱۴۰۲، ۱۵:۰۸

سلام. برای حل این مشکل دو راه حل وجود داره. مورد اول اضافه کردن اون به path سیستم هست. در این لینک توضیحات آورده شده.

راه دوم استفاده از دستور زیر هست:

flutter packages pub run build_runner build
بهترین پاسخ
یلدا محصلی ۱۹ فروردین ۱۴۰۲، ۱۷:۵۱

کاری که گفتین رو انجتم دادم اما حالا با این خطا روبه رو هستم

Invoke-WebRequest : AccessDeniedAccess denied.We're sorry, but this service is not available in your 

location

At C:\\crs\\flutter\\bin\\internal\\update_dart_sdk.ps1:70 char:5

+   Invoke-WebRequest -Uri $dartSdkUrl -OutFile $dartSdkZip

+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  + CategoryInfo     : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-W  

  ebRequest], WebException

  + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebR  

  equestCommand

مینا قره داغی ۲۰ فروردین ۱۴۰۲، ۲۰:۵۰

چه موقع؟ متوجه نشدم دقیقا کجا پیش میاد

یلدا محصلی ۲۱ فروردین ۱۴۰۲، ۲۱:۴۴