It looks like there might be an issue with the installation of Node.js and/or npm on your system. Here are a few things you could try:
Check if Node.js is installed correctly by running the following command:
node --version
This should output the version number of Node.js. If it doesn’t, you might need to reinstall Node.js.
Try reinstalling Node.js and npm using the Node Version Manager (nvm) tool. First, remove any existing installations of Node.js and npm by running:
Try reinstalling Node.js and npm using the Node Version Manager (nvm) tool. First, remove any existing installations of Node.js and npm by running:
sudo apt remove nodejs npm
nvm install 18.16.0
nvm use 18.16.0
npm install -g npm@9.5.0
If the issue persists, you could try clearing the npm cache by running:
npm cache clean –force

I’m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I’ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains:
-
DevOps School – Tech blogs and tutorials
-
Holiday Landmark – Travel stories and guides
-
Stocks Mantra – Stock market strategies and tips
-
My Medic Plus – Health and fitness guidance
-
TrueReviewNow – Honest product reviews
-
Wizbrand – SEO and digital tools for businesses
I’m also exploring the fascinating world of Quantum Computing.