Skip to content

Error: ENOENT: no such file or directory when deploying #532

@higgsbelly2

Description

@higgsbelly2

After running $ npm run deploy rinkeby

Get the following after deploying the contracts

 Error: ENOENT: no such file or directory, open 'C:\Users\higha\tribute-contracts\build\deployed/contracts-rinkeby-2022-03-22T21:51:08.609Z.json'
    at Object.openSync (node:fs:585:3)
    at Object.writeFileSync (node:fs:2157:35)
    at saveDeployedContracts (C:\Users\higha\tribute-contracts\tasks\deploy.js:574:6)        
    at SimpleTaskDefinition.action (C:\Users\higha\tribute-contracts\tasks\deploy.js:81:5)   
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Environment._runTaskDefinition (C:\Users\higha\tribute-contracts\node_modules\hardhat\src\internal\core\runtime-environment.ts:217:14)
    at async Environment.run (C:\Users\higha\tribute-contracts\node_modules\hardhat\src\internal\core\runtime-environment.ts:129:14)
    at async main (C:\Users\higha\tribute-contracts\node_modules\hardhat\src\internal\cli\cli.ts:214:5) {
  errno: -4058,
  syscall: 'open',
  code: 'ENOENT',
  path: 'C:\\Users\\higha\\tribute-contracts\\build\\deployed/contracts-rinkeby-2022-03-22T21:51:08.609Z.json'
}```

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