Ubuntu 14.04'e en son NodeJS sürümü yüklenemiyor


11

Benim sunucuda ben 0.10.25için LTS 0.10.30 ' "I Rea versiyonunu, ihtiyacımız yok' nodejsancak 4 sürümünü yüklemek isteyen geliştiriciler, biraz kazma sonra ben bulduk, 0.12aynı nodejsbazı ile birleşti diğer paketler.

Paket kaynağı yok 0.12, .tar.gznodejs web sitesinden dosya indirdim , paketini açtım, ancak herhangi bir kurulum komut dosyası içermiyor, dosyaları manuel olarak taşıyor veya bağlantı oluşturmak istediğim yol değil, ne yapabilirim?

Güncelleme:

[web01]~> nodejs -v
v0.10.25
[web01]~> apt-get install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[web01]~> curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
[web01]~> apt-get install -y nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[web01]~> uname -a
Linux web01.example.lab 3.19.0-28-generic #30~14.04.1-Ubuntu SMP Tue Sep 1 09:32:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[web01]~> 

3
En son Node.js / MongoDB'yi kurmanın olası kopyası ? Kurulum için talimatlar için kullanıcının yanıta bakın .. 0.12 node.js
— Karel

Yanıtlar:


13

NodeJS'yi kurmanın en kolay yolu resmi PPA'yı kullanmaktır (en son sürümü içerir (bu düzenleme sırasında 8.X).

Bir terminal açın ( Ctrl+ Alt+ T) ve çalıştırın:

  1. Geçerli NodeJS kurulumunu kaldır

    sudo apt-get purge nodejs*
    
  2. Yüklemek curl

    sudo apt-get install curl
    
  3. NodeJS Kurulumu:

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

4.1.1 sürümüne değil, kesinlikle 0.12 sürümüne ihtiyacınız varsa, çalıştırın:

  1. NodeJS Kurulumu:

    curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
    sudo apt-get install -y nodejs
    

1
Bu yardımcı olmaz, söz konusu güncellemeye bakın.
— Edik Mkoyan

Lütfen düzenlenen cevabıma bakın.
— hg8

Daha önce LinuxMint olan Ubuntu'umun dağıtım adını değiştirdikten sonra benim için çalıştı. İlk kez yüklemeye çalıştığımda hata aldım ## Your distribution, identified as "petra", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support. Distro
— antongorodezkiy

Daha -Eönce komutun bashsonuna eklemelisiniz curl...
— smartmouse
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.