nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.52k stars 165 forks source link

Internal Error: ENOENT: no such file or directory, open '/root/.cache/node/corepack/lastKnownGood.json' #386

Closed CWThomson closed 7 months ago

CWThomson commented 7 months ago

Corepack Version 0.25.1 OS: Amazon Linux 2023/6.1.0 (Elastic Beanstalk) - Node 18

When we run corepack yarn we receive the error: Internal Error: ENOENT: no such file or directory, open '/root/.cache/node/corepack/lastKnownGood.json'

This only started happening this morning and seems to correspond with the release of 0.25.1. It only impacts our servers when an instance is terminated and it enables corepack from scratch.

Perhaps this is an incompatibility with AWS and the latest version of Corepack?

merceyz commented 7 months ago

Duplicate of https://github.com/nodejs/corepack/issues/379