从/ usr / local / bin / node卸载节点

问题描述 投票:0回答:1

我在卸载甚至不存在但仍显示在路径中的软件包node时遇到问题,很奇怪还是我愚蠢...它与nodejs矛盾,我想摆脱它,并为nodejs安装一个新的node符号链接,以便使我有一个真实的来源。到目前为止,我已经尝试了大多数流行的软件包管理器。

#tag节点vs nodejs linux

durrani@ideapad:~ $ nodejs --version
Command 'nodejs' not found, but can be installed with:
sudo apt install nodejs

durrani@ideapad:~ $ node --version
v12.14.0
durrani@ideapad:~ $ which nodejs
durrani@ideapad:~ $ which node   
/usr/local/bin/node
durrani@ideapad:~ $ type node
node is hashed (/usr/local/bin/node)
durrani@ideapad:~ $ type nodejs
bash: type: nodejs: not found
durrani@ideapad:~ $ sudo apt-get remove node
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package node
durrani@ideapad:~ $ sudo apt-get purge node
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package node
durrani@ideapad:~ $ sudo snap remove node
snap "node" is not installed
durrani@ideapad:~ $ sudo pkcon remove node
Resolving                     [=========================]         Package not found: node
Command failed: This tool could not find the installed package: No packages were found
node.js linux ubuntu apt nvm
1个回答
0
投票

this获得了一些帮助,然后运行以下命令:


0
投票

this获得了一些帮助,然后运行以下命令:

© www.soinside.com 2019 - 2024. All rights reserved.