Nitesh
Nitesh

Reputation: 148

Installing nodejs fro react native

I am trying following from official site with following code:

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

sudo apt-get install -y nodejs

but ended with the following error:

Some index files failed to download. They have been ignored, or old ones used instead. Error executing command, exiting

What would be the possible solution?

Upvotes: 1

Views: 100

Answers (1)

ajafik
ajafik

Reputation: 145

From the commands above, it is obvious you are on Debian Linux Distro, enter the following commands on your terminal to install NodeJS:

=> Close and reopen your terminal, then enter the following commands on your terminal:

  • command -v nvm
  • nvm install 5.0
  • nvm use 5.0
  • nvm alias default node

The above will install version 5.0 of NodeJS on your box.

Hope this helps...

Upvotes: 1

Related Questions