Skip to content

errors on old node.js version v17.9.1  #303

@themighty1

Description

@themighty1

As I was trying to run
phase2cli auth && phase2cli contribute -c anon-aadhaar-v2-trusted-setup-ceremony

I got an error

/home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/solc/soljson.js:133
    process["on"]("unhandledRejection", function (reason) { throw reason; });
                                                            ^

Error: Unable to find the user currently authenticated with Firebase. Verify that the Firebase application is properly configured and repeat user authentication before trying again.
    at getCurrentFirebaseAuthUser (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/@p0tion/actions/dist/index.mjs:1940:15)
    at checkAuth (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/dist/index.js:1642:18)
    at Command.contribute (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/dist/index.js:3029:99)
    at async Command.parseAsync (/home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/commander/lib/command.js:935:5)

Node.js v17.9.1

After I upgraded to the latest LTS nodejs, the error was gone.

Maybe potion could check the version compatibility during runtime and inform the user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions