在 linux mint 中安装 firebase cli 时出错
Gertting Error installing firebase cli in linux mint
我使用 crazi_boii@crazi-Boii ~ $ sudo npm install -g firebase-tools
安装 cli。
并且 cmd 得到完美执行。
this is the error i get after typing the command "firebase --version"
/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32
const EOF = Buffer.alloc(1024)
^
TypeError: Buffer.alloc is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32:20)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/create.js:6:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
请帮忙。 .
谢谢
Cloud Functions for Firebase 使用节点 6,as stated in the documentation. You're using a much older version, so you'll need to upgrade your node installation. If you don't want to use a package manager to force an upgrade for what you have now, you can install any version of node in your home directory using Node Version Manager。
我使用 crazi_boii@crazi-Boii ~ $ sudo npm install -g firebase-tools
安装 cli。
并且 cmd 得到完美执行。
this is the error i get after typing the command "firebase --version"
/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32
const EOF = Buffer.alloc(1024)
^
TypeError: Buffer.alloc is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32:20)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/create.js:6:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
请帮忙。 . 谢谢
Cloud Functions for Firebase 使用节点 6,as stated in the documentation. You're using a much older version, so you'll need to upgrade your node installation. If you don't want to use a package manager to force an upgrade for what you have now, you can install any version of node in your home directory using Node Version Manager。