Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'

I'm trying to enable 'corepack' by running

corepack enable

according to the directions here: https://yarnpkg.com/getting-started/install

but getting this error

Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'

How to fix this?

like image 316
Matt Avatar asked Dec 05 '25 20:12

Matt


1 Answers

Encountered this myself and it seems like the issue was that the circleci environment doesn't allow access to the default location corepack adds it's binary symlinks (/usr/local/bin/...). For me it was fixed by instead using ~/bin for the corepack install directory:

corepack enable --install-directory ~/bin
like image 135
KSab Avatar answered Dec 08 '25 15:12

KSab