Announcement

Collapse
No announcement yet.

Troubles installing npm/nodejs

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [RESOLVED] Troubles installing npm/nodejs

    Hello, I am currently on KDE Kubuntu Plasma 22.04 and cannot figure out how to install npm/nodejs on its most recent version so I can code React apps. I've tried running simple sudo apt-get install nodejs and sudo apt install npm, however, those only install outdated versions of the software.

    I cannot figure out how to install npm/nodejs from the nodejs website for my system.

    Thank you for any help in advance.

    #2
    After you have downloaded the zipped archive from their site (node-v18.12.1-linux-x64.tar.xz), follow their instructions: Installing Node.js via binary archive
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Originally posted by Snowhog View Post
      After you have downloaded the zipped archive from their site (node-v18.12.1-linux-x64.tar.xz), follow their instructions: Installing Node.js via binary archive
      Hello, I tried this, and it is still not working. Is there anything else I can do to try and fix the issue?

      Comment


        #4
        Did you encounter problems with the instructions? If so, which step(s)? Or did the instructions work (no errors), but you can't launch (?) the application?
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Originally posted by Snowhog View Post
          Did you encounter problems with the instructions? If so, which step(s)? Or did the instructions work (no errors), but you can't launch (?) the application?
          I had errors running Step 2, and Step 3 did not output anything.

          Comment


            #6
            I've downloaded it from the main website, unzipped it with Dolphin, and then tried running node -v in console, but it outputs: "Command 'node' not found, but can be installed with:
            sudo apt install nodejs"

            Before downloading it, I attempted to run node -v, and it said /usr/bin/lib: command node not found

            I removed the package I downloaded and it only outputs "Command 'node' not found, but can be installed with:
            sudo apt install nodejs" now

            Not sure if this information helps.

            Comment


              #7
              I have resolved my issue after following this thread:

              https://github.com/nodesource/distributions/issues/1157

              Thanks for all the help!

              Comment

              Working...
              X