The package name of Evented I/O for V8 javascript is nodejs. To remove nodejs and npm:

sudo apt-get purge nodejs npm 

'node' is a purely virtual package. That's why you got the error message: Package 'node' is not installed, so not removed

For a brief description of what these packages do without making any changes to your system:

apt-cache show nodejs npm  

To show whether nodejs and npm are installed and up-to-date without making any changes to your system:

apt-cache policy nodejs npm
Answer from karel on askubuntu.com
🌐
Stack Overflow
stackoverflow.com › questions › 62955376 › package-nodejs-is-not-installed-so-not-removed-ubuntu-18-04
node.js - 'Package 'nodejs' is not installed, so not removed' Ubuntu 18.04 - Stack Overflow
I want to uninstall nodejs and npm from my Ubuntu 18.04 system. I have tried the following command. sudo apt purge nodejs Output Reading package lists... Done Building dependency tree Reading
🌐
Ask Ubuntu
askubuntu.com › questions › 945928 › cant-remove-nodejs
apt - Can't remove nodejs - Ask Ubuntu
rd@rd-asus:~$ sudo apt-get purge node Reading package lists... Done Building dependency tree Reading state information... Done Package 'node' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 360 not upgraded. rd@rd-asus:~$ node --version v7.10.0 rd@rd-asus:~$ nodejs --version v8.3.0
🌐
Stack Overflow
stackoverflow.com › questions › 69231568 › how-to-remove-nodejs-from-ubuntu
node.js - How to remove nodejs from ubuntu - Stack Overflow
rahul@rahul:~$ sudo apt-get purge --auto-remove nodejs Reading package lists... Done Building dependency tree Reading state information... Done Package 'nodejs' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. rahul@rahul:~$ sudo apt-get purge --auto-remove node Reading package lists...
🌐
Stack Overflow
stackoverflow.com › questions › 73936134 › how-to-delete-nodejs-and-npm-from-my-ubuntu-device
node.js - How to delete nodejs and npm from my Ubuntu device? - Stack Overflow
how did you install the packages? apt uninstalls packages installed with the relevant manager (in this case, they were not installed with apt Package 'nodejs' is not installed, so not removed)
🌐
GitHub
github.com › nodejs › help › issues › 554
npm not installed along with nodejs · Issue #554 · nodejs/help
March 28, 2017 - Following the guidelines as per https://nodejs.org/en/download/package-manager/, installed nodejs versin-7.x on my machine several times. But every time npm does not get installed. When typing in 'npm -v' it says, the program 'npm' is currently not installed.
Published   Mar 28, 2017
Find elsewhere
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
We do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally. Note: to download the latest version of npm, on the command line, run the following command:npm install -g npm ... To see if you already have Node.js and npm installed and check the installed version, run the following commands: ... Node version managers allow you to install and switch between multiple versions of Node.js and npm on your system so you can test your applications on multiple versions of npm to ensure they work for users on different versions.
🌐
npm
docs.npmjs.com › uninstalling-packages-and-dependencies
Uninstalling packages and dependencies | npm Docs
To uninstall an unscoped global package, on the command line, use the uninstall command with the -g flag. Include the scope if the package is scoped.
🌐
Mend
mend.io › blog › reinstall-npm-node-js
How To Reinstall NPM And Node.js On Any System
October 31, 2024 - To do so, you can start by refreshing your local package index: sudo apt update · Then, reinstall the distro-stable Node.js version from the repositories: sudo apt install nodejs ·
🌐
Warp
warp.dev › terminus › re-install-npm
Warp: How To Re-Install Npm With the CLI or via Website
January 31, 2024 - $ sudo apt remove nodejs $ sudo apt purge nodejs $ sudo apt autoremove Run in Warp · Which will remove the current Node.js distribution from your system, as well as its configuration files, and any other unused packages that were installed with it.
🌐
GeeksforGeeks
geeksforgeeks.org › node.js › how-to-completely-remove-node-js-from-windows
How to Completely Remove Node.js from Windows ? - GeeksforGeeks
June 7, 2024 - Step 1: Whenever we install a package ... where the cache data is stored on Windows is %AppData%/npm-cache. So, we need to clean the cache first....
🌐
npm
docs.npmjs.com › resolving-eacces-permissions-errors-when-installing-packages-globally
Resolving EACCES permissions errors when installing packages globally | npm Docs
This is the best way to avoid permissions issues. To reinstall npm with a node version manager, follow the steps in "Downloading and installing Node.js and npm". You do not need to remove your current version of npm or Node.js before installing a node version manager.
🌐
Reddit
reddit.com › r/node › properly uninstalling npm packages from node apps
Properly uninstalling npm packages from node apps : r/node
April 4, 2024 - If you manually remove it from package json, you'll still install it because it's in your package lock. You might also get failures with certain package managers because your package lock is out of date (mismatching dependencies) ... The way you’ve asked this question makes me wonder what ...
🌐
Reddit
reddit.com › r/node › beginner questions around node and npm - how are packages meant to be uninstalled
r/node on Reddit: Beginner questions around Node and NPM - how are packages meant to be uninstalled
November 22, 2024 -

Apologies if this is overly basic, I am very new to Node and NPM packages, so trying to fully understand it before I dive headfirst into a tutorial.

Context, I'm trying to learn Playwright automation and following a tutorial that advised using this repo to setup a mock website for testing. (https://github.com/bondar-artem/pw-practice-app)

I followed the tutorial and noticed the packages installed locally in the project under a node_modules directory.

so, I wanted to see how uninstalling a package works. I used npm uninstall Zone.js --force to remove one of the packages. The command appeared to complete in the terminal, but the Zone.js package was still inside the node_modules directory.

I manually deleted the package from windows explorer, then NPM rightly complained it was missing. Running the same uninstall command added it back.

Is there a way to uninstall all packages in the same way they are all installed? I tried npm uninstall * --force which still didn't uninstall anything, so I am slightly confused how NPM is meant to allow removing packages that were installed