3

I installed npm and nodejs today because I wanted to try tldr-pages.

After the obligatory sudo apt-get update && sudo apt-get upgrade:

$ sudo apt-get install nodejs npm

Following a huge download of "stuff", which concluded successfully, I tried installing my objective app:

$ npm install -g tldr 

This was immediately followed by a strange warning:

npm WARN npm npm does not support Node.js v10.23.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.

Taken literally, the WARNING is nonsense as it says: 1) your version of nodejs is not supported & should be upgraded, and 2) supported releases are only older versions!

I know nothing about npm and nodejs. Is this a problem with RPi's repo - or is this a reflection of the state of these apps? Is there a known resolution for this?

asked Jan 17, 2021 at 23:54
3
  • 1
    I normally get around this by using nvm Commented Jan 18, 2021 at 0:01
  • 1
    raspberrypi.org/forums/viewtopic.php?t=245989 Commented Jan 18, 2021 at 0:22
  • @SteveRobillard: A bit of helter-skelter? :) Commented Jan 18, 2021 at 0:47

1 Answer 1

4

Packaged on debian based distribution:

sudo apt install tldr

With npm:

Install a supported nodejs version:

curl -sL https://deb.nodesource.com/setup_current.x | sudo bash -
sudo apt install nodejs

Then run:

sudo npm install npm@latest -g
sudo npm install tldr -g

npm WARN npm npm does not support Node.js v10.23.1 npm WARN npm You should probably upgrade to a newer version of node ...

You need to upgrade npm:

sudo npm install npm@latest -g
answered Jan 18, 2021 at 0:22
1
  • sudo apt install tldr... I saw that, but the reference to Haskell in apt-cache search tldr threw me off as I thought it was tldr specific to Haskell :) Commented Jan 18, 2021 at 2:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.