如何更改节点版本?“您请求的"节点"版本"8"表示与您的全局版本"10"不匹配 [英] how to change node version? "Your requested "node" version "8" doesn't match your global version "10"

查看:74
本文介绍了如何更改节点版本?“您请求的"节点"版本"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 http://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,您必须从 https://github.com/nvm-sh/nvm安装nvm那里将有一个安装nvm的命令,安装后必须重新启动终端.

for nvm you have to install nvm from https://github.com/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"不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆