LESSON 5: Installing Yarn #2575
-
trying to install yarn in node.js. I typed in "corepack enable" and got the following error. "Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm' i type in "corepack --version" and get "0.12.1" as a response so i believe i have it installed if that helps. Also saw someone in another chat suggest "to try sudo" and a response with that "it worked" but I don't know what that means. any help on this would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
You are getting the error because you are trying to install/run the command with an account that has low administrative priviledges. The |
Beta Was this translation helpful? Give feedback.
-
No need to go through such a hassle, just do |
Beta Was this translation helpful? Give feedback.
You are getting the error because you are trying to install/run the command with an account that has low administrative priviledges. The
sudo
command they are talking about makes you run the commands with administrative priviledges. However, it is not recommended to run just any command especially installations with this command it is a security risk and it should be a last minute resort.