۳۵٪ تخفیف روی تمامی دوره ها🔥 + دوره زبان تخصصی و مهاجرت با ارزش ۵ میلیون تومان بصورت هدیه
۰ ثانیه
۰ دقیقه
۰ ساعت
۸ سعید امیراحمدی
ارور هنگام ران کردن firebase login
جامعه فلاتر ایجاد شده در ۱۲ اردیبهشت ۱۴۰۳


firebase : The term 'firebase' 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
+ firebase login
+ ~~~~~~~~
   + CategoryInfo          : ObjectNotFound: (firebase:String) [], CommandNotFoundException
   + FullyQualifiedErrorId : CommandNotFoundException
 

این مراحل رو انجام داد‌ه‌اید؟

 

  1. Install firebase tools. Use: npm install -g firebase-tools
    Login using: firebase login
    Initialize your firebase: firebase init In this step you need to select your firebase account and the application folder you want to deploy on firebase.
    Then to deploy the code: firebase deploy
یلدا محصلی ۱۶ اردیبهشت ۱۴۰۳، ۱۳:۴۶

این ارور داد

npm install -g firebase-tools
npm : The term 'npm' 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
+ npm install -g firebase-tools
+ ~~~
   + CategoryInfo          : ObjectNotFound: (npm:String) [], CommandNotFoundException
   + FullyQualifiedErrorId : CommandNotFoundException
 

سعید امیراحمدی ۱۷ اردیبهشت ۱۴۰۳، ۰۱:۲۴

node js را نصب کنید.

یلدا محصلی ۱۷ اردیبهشت ۱۴۰۳، ۱۵:۲۶

بعد از نصب node js و اجرای مجدد 

npm install -g firebase-tools

این ارور داد

npm notice                                                           
npm notice New minor version of npm available! 10.5.2 -> 10.7.0      
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.7.0
npm notice Run npm install -g npm@10.7.0 to update!
npm notice 
npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno -4077
npm ERR! network read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in: C:\Users\d\AppData\Local\npm-cache\_logs\2024-05-10T18_54_33_567Z-debug-0.log
 

سعید امیراحمدی ۲۳ اردیبهشت ۱۴۰۳، ۰۱:۵۳

از اینترنتتون ایراد گرفته. اتصال اینترنتتون رو بررسی کنید

یلدا محصلی ۲۳ اردیبهشت ۱۴۰۳، ۰۶:۲۵

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

سعید امیراحمدی ۲۳ اردیبهشت ۱۴۰۳، ۰۷:۲۴

npm install -g firebase-tools

نصب شد 

دوباره فایربیس لاگین زدم این ارور داد

firebase : File C:\Users\d\AppData\Roaming\npm\firebase.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see 
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ firebase login
+ ~~~~~~~~
   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
   + FullyQualifiedErrorId : UnauthorizedAccess
 

سعید امیراحمدی ۲۳ اردیبهشت ۱۴۰۳، ۲۰:۵۵

راه‌حل‌های گفته شده رو تست کنید.

 

یلدا محصلی ۲۴ اردیبهشت ۱۴۰۳، ۲۰:۳۵