如何更改节点版本?“您请求的"节点"版本"8"表示与您的全局版本"10"不匹配

编程入门 行业动态 更新时间:2024-10-25 06:28:28
本文介绍了如何更改节点版本?“您请求的"节点"版本"8"表示与您的全局版本"10"不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我在终端Firebase模拟器中运行时会发生这种情况:开始

It happen when I run in terminal firebase emulators:start

监视所有输出

i emulators: Starting emulators: functions, hosting ✔ hub: emulator hub started at ht tp://localhost:4400 ⚠ Your requested "node" version "8" doesn't match your global version "10" ✔ functions: functions emulator started at ht tp://localhost:5001 i hosting: Serving hosting files from: dist/spa-mat ✔ hosting: Local server: ht tp://localhost:5000 ✔ hosting: hosting emulator started at localhost:5000 i functions: Watching "/var/w ww/html/teachers/agnos2108-app.teachersnow-6391de281bf3/functions" for Cloud Functions... ✔ functions[sendEmailLogger]: http function initialized (ht tp://localhost:5001/teachernow-7082b/us-central1/sendEmailLogger). ✔ functions[sendMail]: http function initialized (ht tp://localhost:5001/teachernow-7082b/us-central1/sendMail). ✔ functions[payClbBNKTN2019ID]: http function initialized (ht tp://localhost:5001/teachernow-7082b/us-central1/payClbBNKTN2019ID). ✔ functions[payClbBNKTN2019]: http function initialized (ht tp://localhost:5001/teachernow-7082b/us-central1/payClbBNKTN2019). ✔ functions[payClbCCTN2019]: http function initialized (ht tp://localhost:5001/teachernow-7082b/us-central1/payClbCCTN2019). ✔ functions[payClbCDTN2019]: http function initialized (ht tp://localhost:5001/teachernow-7082b/us-central1/payClbCDTN2019). i functions[SchedulesOn]: function ignored because the database emulator does not exist or is not running. i functions[UsersOn]: function ignored because the database emulator does not exist or is not running. i functions[BankslipOn]: function ignored because the database emulator does not exist or is not running. i functions[sendWelcomeEmail]: function ignored because the auth emulator does not exist or is not running. ✔ emulators: All emulators started, it is now safe to connect.

推荐答案

,您只需访问node.js官方网站并下载所需的版本并安装它即可.或者您可以使用nvm来做到这一点.

you can simply go to the node.js official website and download the version you want and install it. or you can use nvm to do that.

对于nvm,您必须从 github/nvm-sh/nvm安装nvm那里将有一个安装nvm的命令,安装后必须重新启动终端.

for nvm you have to install nvm from github/nvm-sh/nvm there you will have the a command to install nvm and after installation you have to restart your temrminal.

然后使用此命令-

nvm install 12.16.1

12.16.1是您可以根据需要更改的版本.

12.16.1 is the version you can change it with the version you want.

更多推荐

如何更改节点版本?“您请求的"节点"版本"8"表示与您的全局版本"10"不匹配

本文发布于:2023-10-18 23:56:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1505800.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   节点   您的   全局   不匹配

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!