Help installing node.js
Hey there, I'm new to Linux and Deepin is my first distro. I'm trying to install Node.js to work through a beginner project but I'm not able to figure out what I'm doing wrong.
I've downloaded the files from here. Then I extracted them and followed the node website's instructions, typing this into the terminal: curl -sL https://deb.nodesource.com/setup_10.x | bash - apt-get install -y nodejs Output is: bash: curl: command not found Next I tried just apt-get install -y nodejs The output read E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? I get that it doesn't recognize "curl" but I don't know what that is supposed to mean in the first place. In the second output I'm guessing it means that the location it needs to install to is locked and I need to have admin privileges which I do but I don't know how to put that in terminal. I'm sure this is really basic stuff, but I'm pretty stuck. Thank you for any help. |
Do you have curl installed? Doesn't look like it.
Code:
whereis curl You get root with su or use sudo if configured. See: man su Did you configure a root account when you installed? And a user? https://wiki.deepin.org |
Quote:
Bad command. Let's go through this:
A command to become root, download some random stuff from the internet and execute it, no questions asked. Does that sound safe to you? So how to do it properly?
|
RadioactiveButter,
You are just missing curl. Something that can download stuff using http(s). You can do this one of two ways. Do you know your root password? Did you provide it during install, or leave it blank? If the former, then run the following command: Code:
$ su - Then install curl: Code:
# apt install curl If you are using sudo (no root password), then do the following: Code:
$ sudo apt install curl ondoho, Quote:
|
Quote:
Quote:
|
All times are GMT -5. The time now is 06:34 AM. |