【问题标题】:uninstalled npm still node-red is running in ubuntu16.04ls卸载的 npm 仍然 node-red 在 ubuntu16.04ls 中运行
【发布时间】:2017-06-01 18:01:06
【问题描述】:

我已经完全删除了 nodejs 和 npm,但是当我在 ubuntu 16.04ls 的终端中输入“node-red”时,我使用 npm 安装的包(即 node-red)正在运行 我已经使用“apt-get install nodejs npm”安装了 nodejs 和 npm 然后我使用npm install node-red -g安装了node-red

为了卸载,我做了apt-get unistall npm nodejs 它已成功卸载,但现在当我输入卸载 node-red 时它正在运行

【问题讨论】:

  • 尝试移除全局node-red,npm uninstall -g node-red
  • 试过还是问题依旧

标签: node.js ubuntu npm node-red


【解决方案1】:

我发现node-red文件存放在

/use/local/bin/node-red

当我在终端中输入 node-red 时它正在运行。另外,我现在已经删除了另外一个文件 node-red-pi。 而这个 node-red 现在不再运行了。我想做thanx @hmnzr和King Reload

【讨论】:

  • 没问题 :) 很高兴您能够通过我们的帮助解决您的问题!
  • 请接受您自己的答案 :P 以便人们看到它已解决;)
【解决方案2】:

如果@hmnzr 不起作用并且node-red 是来自npm 的模块,您也可以使用npm remove -g node-red,如果您只是想禁用该模块,您也可以使用disable

作为另一个补充,您也不能卸载正在使用的模块。这意味着在卸载之前清除相关插件的所有节点。不过有些可能需要手动删除。

更多命令:npm uninstall node-red-dashboard

如果您需要从调色板管理器中删除模块:单击manage palette,然后单击remove 以删除模块。不过在这里你也可以disable all

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-09-25
    • 2011-07-18
    • 1970-01-01
    • 2018-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-08
    相关资源
    最近更新 更多