How to successfully run corepack enable in terminal

156 views Asked by At

I am trying to run corepack enable in my MacBook terminal and I am getting the below error. I am not entirely sure what the issue is



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

I am trying to run that command in my CLI
1

There are 1 answers

0
X8inez On BEST ANSWER

The reason you are encountering this error is because you are being denied access. To enable you to run the command successfully do this

sudo corepack enable

It will ask you for your password after you hit enter.