202512061735 Status: idea Tags: Node.js, NPM

specific node and npm version installation

You can update npm with itself:

npm install -g npm@latest

and for node, run the following:

sudo apt update
sudo apt upgrade nodejs

If that doesn’t fix it, it is probably because the repository lagged behind. You can directly pull it:

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

References

I recently ran into the following issue:

npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: @jackyzha0/quartz@4.5.2
npm error notsup Not compatible with your version of node/npm: @jackyzha0/quartz@4.5.2
npm error notsup Required: {"npm":">=10.9.2","node":">=22"}
npm error notsup Actual:   {"node":"v20.19.6","npm":"11.6.4"}
npm error A complete log of this run can be found in: /home/<name>/.npm/_logs/2025-12-06T16_35_15_294Z-debug-0.log