Skip to content
Advertisement

Installing node.js 6.3.1 – no such file or directory

I’m trying to install the latest version of node on Elementary OS based on Ubuntu 14.04.

I’ve purged all other version of node.

I run this command as explained in a few places on the web:

curl -sL https://deb.nodesource.com/setup_6.3.1 | sudo -E bash -

Then I get this output:

bash: line 1: html: No such file or directory
bash: line 2: syntax error near unexpected token `<'
'ash: line 2: `<head><title>404 Not Found</title></head>

Any ideas?

Advertisement

Answer

You want to use https://deb.nodesource.com/setup_6.x as the URL and not https://deb.nodesource.com/setup_6.3.1.

https://deb.nodesource.com/setup_6.3.1 returns a 404 whereas https://deb.nodesource.com/setup_6.x returns the script you need to run.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement