尝试在firebase上部署时获取“SyntaxError:Unexpected token=”
尝试在firebase上部署时,我收到SyntaxError:Unexpected token=。 执行firebase登录命令时出错 C:\Users\Jegan\AppData\Roaming\npm\node\u modules\firebase tools\lib\utils.js:57 函数logSuccessmessage,类型=信息{ ^尝试在firebase上部署时获取“SyntaxError:Unexpected token=”,firebase,npm,web-applications,hosting,Firebase,Npm,Web Applications,Hosting,尝试在firebase上部署时,我收到SyntaxError:Unexpected token=。 执行firebase登录命令时出错 C:\Users\Jegan\AppData\Roaming\npm\node\u modules\firebase tools\lib\utils.js:57 函数logSuccessmessage,类型=信息{ ^ SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:5
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (C:\Users\Jegan\AppData\Roaming\npm\node_modules\fireb
ase-tools\lib\command.js:5:13)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
我通过更新我的节点版本解决了这个问题。我通过更新我的节点版本解决了这个问题。我通过将我的节点从v4.2.6升级到v8.16.0解决了这个问题。 可以运行以下命令:
sudo apt-get update
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
node --version
我通过将nodejs从v4.2.6升级到v8.16.0解决了这个问题。 可以运行以下命令:
sudo apt-get update
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
node --version
什么节点版本?什么节点版本?