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

Error: ENOENT: no such file or directory, open './.cache/devnet-temp' #64

Open
paul-atx opened this issue Dec 19, 2021 · 1 comment
Open

Comments

@paul-atx
Copy link

paul-atx commented Dec 19, 2021

While running yarn setup-dev

I'm having an issue getting this setup on Ubuntu. It looks like a file is missing. I tried creating an empty file and removing the check for the file but it creates errors for NEXT_PUBLIC_CANDY_MACHINE_CONFIG

$ node ./devtools/dev/setup-envs-dev.js
internal/fs/utils.js:314
    throw err;
    ^

Error: ENOENT: no such file or directory, open './.cache/devnet-temp'
    at Object.openSync (fs.js:498:3)
    at Object.readFileSync (fs.js:394:35)
    at /home/ubuntu/solana-candy-factory/devtools/dev/setup-envs-dev.js:42:31
    at FSReqCallback.oncomplete (fs.js:180:23) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: './.cache/devnet-temp'
}
@tburnam
Copy link

tburnam commented Dec 27, 2021

This is what fixed the issue for me: In setup-envs-dev.js, at line 42, it has:

const metaplexTempFile = fs.readFileSync('./.cache/devnet-temp');

which is missing the .json extension. Replace with:

const metaplexTempFile = fs.readFileSync('./.cache/devnet-temp.json');

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