2

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?

3
3

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
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 :) – Seamus Jan 18 at 2:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.