Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Error: ENOENT: no such file or directory, open '%PARENT_PATH%/metadata.json' #70

Open
Destiner opened this issue Jul 24, 2019 · 1 comment
Labels
bug 🪲 Something isn't working

Comments

@Destiner
Copy link

When I try to run Launch Kit backend, I get the following issue: Error: ENOENT: no such file or directory, open '%PARENT_PATH%/metadata.json' where %PARENT_PATH% is the folder above the one where Launch Kit is installed.

To reproduce:

  1. git clone https://github.com/0xProject/0x-launch-kit-backend.git 0x-backend
  2. cd 0x-backend
  3. yarn
  4. yarn start:js

I fixed locally by changing path.join(__dirname, '../../metadata.json'); to path.join(__dirname, '../metadata.json'); in js/config.js.

@dekz
Copy link
Member

dekz commented Jul 25, 2019

Thanks for the report. This is because we have our typescript under ts/src and javascript gets moved to js/ which a relative path would cause the failure.

@dekz dekz added the bug 🪲 Something isn't working label Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants