Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install /node-v5.1.0-linux-x64$ #41

Closed
dozeen opened this issue Dec 2, 2015 · 12 comments
Closed

How to install /node-v5.1.0-linux-x64$ #41

dozeen opened this issue Dec 2, 2015 · 12 comments

Comments

@dozeen
Copy link

dozeen commented Dec 2, 2015

No description provided.

@bnoordhuis
Copy link
Member

Can you provide more details? What did you download where and where are you trying to install it to? If you ran into problems, please post what you've tried so far and the error messages you got.

@neophoenix123
Copy link

I am trying to install node for 64bit ubuntu OS. Simply put, I am not very good with file/archive management, understanding directory download/install behaviors and I just cannot seem to progress smoothly in navigating the terminal to launch programs or execute files. Every time I try, I keep getting errors and I am just burned out trying. From what it looks like, node-v5.1.0-linux-x64 is right here in my /Home/Downloads directory. However, nothing seems to be executable within the contents of the folder in the given archive for me to actually get the program to either launch or be recognized.

Also, I am sooooo desperate to get my first ember application started, but I get errors in the terminal such as "no such file" when clearly I am looking right at it. Also I get "WARN" errors stating I need the latest version of the program which I do. I also have downloaded Ember cli along with its respective supporting packages and I just cannot get things to update or download correctly (despite following instructions verbatim). Any assistance greatly appreciated!

One more addition, when I attempt to install ember-cli, it gives me the following:

npm ERR! error rolling back Error: EACCES, unlink '/usr/local/bin/ember'
npm ERR! error rolling back ember-cli@1.13.13 { [Error: EACCES, unlink '/usr/local/bin/ember'] errno: 3, code: 'EACCES', path: '/usr/local/bin/ember' }
npm ERR! Error: EACCES, unlink '/usr/local/bin/ember'
npm ERR! { [Error: EACCES, unlink '/usr/local/bin/ember'] errno: 3, code: 'EACCES', path: '/usr/local/bin/ember' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.2.0-19-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "-g" "install" "ember-cli"
npm ERR! cwd /home/neophoenix
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/bin/ember
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/bin/ember'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/neophoenix/npm-debug.log
npm ERR! not ok code 0

Then when I reattempt as sudo, I get ERR! EACCES, unlink 'usr/local/bin/ember' followed by many 'WARN deprecated' no longer maintained results. If I actually have to go to the readme files to install, I might be here until Christmas...I hope it won't come to this because every tutorial I go to the user installs the programs in less than 2 minutes. All I want to do is create my first app in Ember, and I hope it is easier than I am making it out to be. Thanks again!!

@rvagg
Copy link
Member

rvagg commented Dec 2, 2015

@neophoenix123 here's a one-liner that may be helpful for getting it installed: curl https://nodejs.org/download/release/v5.1.0/node-v5.1.0-linux-x64.tar.xz | tar Jxv --strip=1 -C /usr/local/

The important bits of this are the use of J for tar to understand xz compression, the --strip=1 which will get rid of the /node-v5.1.0-linux-x64 at the start of all of the paths and -C /usr/local to unpack it all under /usr/local/ including the executable at /usr/local/bin/node and npm resources in /usr/local/lib/node_modules/ and a link to the executable at /usr/local/bin/npm. It's also likely that you'll need root permissions to unpack in /usr/local so you can just change | tar ... to | sudo tar ....

Alternatively, a much easier approach is to use the NodeSource Linux distributions at https://deb.nodesource.com/ to get v5.x and it'll be all be properly installed via the usual apt mechanisms, including updates as they come out.

@neophoenix123
Copy link

Wow I will be giving this a try right now and I will keep you informed. Thank you for this help I am crossing fingers as we speak!

@neophoenix123
Copy link

Wow nothing..this is the latest:

tar: Child died with signal 13
tar: Error is not recoverable: exiting now
curl: (23) Failed writing body (450 != 4096)

@rvagg
Copy link
Member

rvagg commented Dec 3, 2015

@neophoenix123 did you try with sudo tar instead?

@valle-xyz
Copy link

Thanks @rvagg for https://deb.nodesource.com/

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

@valle-xyz
Copy link

Oh, then I run into trouble because I had an old version of node installed. This helped me, but updated the existing installation to 5.0.0 (without LTS, but ok, lets go):

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

@supermonteiro
Copy link

thank you @rvagg

@neophoenix123
Copy link

If you are using it for Ember, I have a step by I can give you in order to
ensure node and other dependencies are installed using NVM. Its the best
method when using Ember!

On Wed, Feb 3, 2016 at 6:46 AM, Thiago Monteiro Barbosa <
notifications@github.com> wrote:

thank you @rvagg https://github.com/rvagg


Reply to this email directly or view it on GitHub
#41 (comment).

George Awad, BS.BA http://BS.BA
Epic Proportions Software inc.
gawad@eptent.com gawad@eptent.com
http://epicproportionstour.com http://epicproportionstour.com

@neophoenix123
Copy link

Sudo install anything are just not good friends with ember as permissions
are temporary using sudo to install nodejs. You will probably run into
issues accessing files later so I would suggest

-curl -o-
https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
(this will download node version manager)
-nvm install stable (this will install the latest version of nodejs and
npm respectively)

On Wed, Feb 3, 2016 at 10:13 AM, George Awad gawad@eptent.com wrote:

If you are using it for Ember, I have a step by I can give you in order to
ensure node and other dependencies are installed using NVM. Its the best
method when using Ember!

On Wed, Feb 3, 2016 at 6:46 AM, Thiago Monteiro Barbosa <
notifications@github.com> wrote:

thank you @rvagg https://github.com/rvagg


Reply to this email directly or view it on GitHub
#41 (comment).

George Awad, BS.BA http://BS.BA
Epic Proportions Software inc.
gawad@eptent.com gawad@eptent.com
http://epicproportionstour.com http://epicproportionstour.com

George Awad, BS.BA http://BS.BA
Epic Proportions Software inc.
gawad@eptent.com gawad@eptent.com
http://epicproportionstour.com http://epicproportionstour.com

@wellington1993
Copy link

Thanks @Valentin-Seehausen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants