Results 1 to 3 of 3

Thread: NPM install ubuntu 18.04

  1. #1
    Join Date
    Sep 2019
    Beans
    2

    Question NPM install ubuntu 18.04

    Hi,

    I wanted to install nodejs and npm for a project at work but for some reason it's not possible to install npm and I get the following error:

    Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 npm all 3.5.2-0ubuntu4 [1,586 kB]
    Ign:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 npm all 3.5.2-0ubuntu4
    Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 npm all 3.5.2-0ubuntu4 [1,586 kB]
    Err:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 npm all 3.5.2-0ubuntu4
    Undetermined Error [IP: 91.189.88.175 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/poo...buntu4_all.deb Undetermined Error [IP: 91.189.88.175 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    I already tried the provided solution. Nodejs installed just fine.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,895
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: NPM install ubuntu 18.04

    indynaessens; Hello - Welcome to the forum

    On an adventure of discovery for npm
    terminal:
    Code:
    sysop@x1804mini:~$ apt list npm
    Listing... Done
    npm/bionic,bionic 3.5.2-0ubuntu4 all
    sysop@x1804mini:~$
    so OK ! The package is in the repository.

    More info:
    Code:
    sysop@x1804mini:~$ apt show npm
    Package: npm
    Version: 3.5.2-0ubuntu4
    Priority: extra
    Section: universe/web
    <snip>
    APT-Sources: http://mirror.steadfast.net/ubuntu bionic/universe amd64 Packages
    Description: package manager for Node.js
    <snip>
    Now we know that npm resides in the universe repo (as well as nodejs)

    The link is valid:
    per:
    http://archive.ubuntu.com/ubuntu/pool/universe/n/npm/

    And I am able to download npm with no issues.

    So that begs the question of what is different in your system ?

    What results with
    Code:
    sudo apt update
    sudo apt upgrade
    sudo apt install npm
    And post back these full results.

    see what we can do
    to see what is not going on
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Sep 2019
    Beans
    2

    Re: NPM install ubuntu 18.04

    It installed just fine when I arrived at home and tried it again.
    It is possible that it was a network issue at work.

    Closing this thanks for the reply!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •