Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on node 0.10.x anymore #448

Closed
igor10k opened this issue Sep 6, 2017 · 1 comment
Closed

Doesn't work on node 0.10.x anymore #448

igor10k opened this issue Sep 6, 2017 · 1 comment

Comments

@igor10k
Copy link

igor10k commented Sep 6, 2017

google-auto-auth starting with version 0.7.0 requires node >= v4. So either the dependency should be downgraded or minimum node version requirement for firebase-tools should be updated to v4.

error stack

firebase deploy --token "$FIREBASE_DEPLOY_TOKEN" --non-interactive

/home/ubuntu/nvm/v0.10.33/lib/node_modules/firebase-tools/node_modules/google-auto-auth/index.js:10
class Auth {
^^^^^
SyntaxError: Unexpected reserved word
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/ubuntu/nvm/v0.10.33/lib/node_modules/firebase-tools/lib/requireAuth.js:6:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
@igor10k
Copy link
Author

igor10k commented Sep 6, 2017

tar starting with version 3.0.0 requires node ^4.5.0 or node >= 5.10.0 because of the usage of Buffer.alloc. Either downgrade the tar dependency or update the node version requirement for firebase-tools.

error stack

firebase deploy --token "$FIREBASE_DEPLOY_TOKEN" --non-interactive
/home/ubuntu/nvm/versions/node/v5.1.0/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> (/home/ubuntu/nvm/versions/node/v5.1.0/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32:20)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/home/ubuntu/nvm/versions/node/v5.1.0/lib/node_modules/firebase-tools/node_modules/tar/lib/create.js:6:14)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)

@igor10k igor10k changed the title Doesn't work on node 10.x anymore Doesn't work on node 0.10.x anymore Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants