Lesson 5 -- Error Downloading Yarn #1653
-
I get the error message above when I try to download Yarn, not sure what to make of it. Any suggestions for how to successfully download Yarn? Looks like I may be missing some part of the setup. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
try to run your command with |
Beta Was this translation helpful? Give feedback.
-
Hi! Please don't use sudo or administrative privileges, there's no need. It appears the default path for a local installation (or prefix) is not set properly, that's why it's complaining about permissions. Will you please show me the output of the following command? In advance, you can modify the contents of that file, to this Or just run this and try again the installation command from the beginning: Note: never run anything from someone you don't trust or if you don't know exactly what it does. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
So as an update, the sudo command worked. Needed to work in the terminal as an admin. Thank you! |
Beta Was this translation helpful? Give feedback.
-
I guess for Node.js >=16.10 you just need to do corepack enable and then try yarn --version |
Beta Was this translation helpful? Give feedback.
So as an update, the sudo command worked. Needed to work in the terminal as an admin. Thank you!