Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

Environment variable is undefined #207

@orangeagain

Description

@orangeagain

After set "INFURA_KEY" "MNEMONIC" "OWNER_ADDRESS"
and rename .env.example to .env
run yarn truffle deploy --network rinkeby

report error:
"Please set a mnemonic and ALCHEMY_KEY or INFURA_KEY."

console.log(INFURA_KEY), print undefine

I don't know which step wrong, and use "npm install dotenv --save" and add "require('dotenv').config()"
to solve this problem temporary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions