使用 Linux 命令行卸载 Node.JS? [英] Uninstall Node.JS using Linux command line?

查看:33
本文介绍了使用 Linux 命令行卸载 Node.JS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何在 linux 中使用 cmd 行卸载 node.js?

How do you uninstall node.js using the cmd line in linux?

推荐答案

如果您知道使用哪个包管理器进行安装,最好使用相同的包管理器进行卸载.aptmakeyum 的示例在其他答案中.

If you know which package manager was used to install, it is best to uninstall with the same package manager. Examples for apt, make, yum are in other answers.

这是一种手动方法:

运行哪个节点会返回类似/path/bin/node的东西.

Running which node will return something like /path/bin/node.

然后运行cd/path

这就是 Node.JS 添加的全部内容.

This is all that is added by Node.JS.

rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1

现在我唯一不知道的是 npm 以及它安装了什么.如果您再次将 npm 安装到以空开头的自定义路径中,那么您可以看到它添加了什么,然后您将能够为 npm 制作一个类似于我为 node 制作的上述列表的列表.

Now the only thing I don't know about is npm and what it has installed. If you install npm again into a custom path that starts off empty, then you can see what it adds and then you will be able to make a list for npm similar to the above list I made for node.

这篇关于使用 Linux 命令行卸载 Node.JS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆