Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在linux mint 13上删除节点?_Linux_Node.js - Fatal编程技术网

如何在linux mint 13上删除节点?

如何在linux mint 13上删除节点?,linux,node.js,Linux,Node.js,节点将不会在Linux Mint 13上删除 请看这里的视频 和 在这里 我是通过git安装的,但node未能运行我为使node正常运行而运行的测试 所以我卸载了git版本并安装了Ubuntu v。apt获取安装节点 $哪个节点 /usr/local/bin/node $ node --version v0.5.11-pre 那个节点也不工作。。。但我现在不能删除节点 $ sudo apt-get remove node [sudo] password for dennis: Readin

节点将不会在Linux Mint 13上删除

请看这里的视频 和 在这里

我是通过git安装的,但node未能运行我为使node正常运行而运行的测试

所以我卸载了git版本并安装了Ubuntu v。apt获取安装节点 $哪个节点 /usr/local/bin/node

$ node --version
v0.5.11-pre
那个节点也不工作。。。但我现在不能删除节点

$ sudo apt-get remove node
[sudo] password for dennis: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package node is not installed, so not removed
它没有删除,但系统仍然可以看到它

$ which node
/usr/local/bin/node
我尝试了在上找到的建议:但那也不起作用

$./configure --prefix=$HOME/local/node sudo make uninstall
bash: ./configure: No such file or directory
dennis@64maya /usr/local/src/ipython/examples/notebooks $ sudo ./configure --prefix=$HOME/local/node sudo make uninstall
sudo: ./configure: command not found
节点仍在安装中:

$ node --version
v0.5.11-pre

$ which node
/usr/local/bin/node

$ cd /usr/local/bin
$ ls
apt               ipcluster3     iplogger3  irunner3       pycolor
easy_install      ipcontroller   iptest     mint-md5sum    pycolor3
easy_install-3.2  ipcontroller3  iptest3    node           pygmentize
f2py3.2           ipengine       ipython    node-waf       search
highlight         ipengine3      ipython3   nosetests      yelp
ipcluster         iplogger       irunner    nosetests-3.2  zim
我试过dpkg。。。没有快乐

$ dpkg -r node
dpkg: error: requested operation requires superuser privilege
dennis@64maya /usr/local/bin $ sudo dpkg -r node
dpkg: warning: there's no installed package matching node
dennis@64maya /usr/local/bin $ which node
/usr/local/bin/node

dennis@64maya /usr/local/bin $ node --version
v0.5.11-pre
如何删除节点的所有剩余部分,以便我最终可以再次尝试安装它

多谢各位
丹尼斯

你不需要。只需再次下载

git clone https://github.com/joyent/node
cd node
./configure --prefix=/usr/local
make
sudo make install
然后,您将覆盖以前安装中的所有文件,因为您保持了
--prefix=/usr/local
相同,所以安装过程应将所有文件覆盖到相同的相对文件路径中,遵循
/usr/local


希望有帮助

您需要再次从git获取源代码,以便可以运行
/configure
脚本并从源目录中生成脚本。我认为,问题也在于你使用了错误的前缀。鉴于显示
节点的
命令的输出安装在
/usr/local/bin/node
中,我认为您的
--前缀是
/usr/local/
。因此,请尝试:

./configure --prefix=/usr/local && sudo make uninstall

从源目录中。

您是否仍然拥有旧目录,从中可以
/configure
d和
makeinstall
ed
节点
?如果您这样做,只需将
cd
放入其中并尝试运行
sudo make uninstall
。可能与@n.m重复。如果您阅读上述内容并观看视频,我使用Linux命令行完成了uninstall Node.JS中提到的所有操作。这就是为什么我特别在这里发布,因为我在使用Linux命令行卸载Node.JS时的Q被管理员删除。@Blender我运行了sudo make Uninstall,但文件和目录仍然存在。。。卸载后它们不都应该消失吗?下面是视频:非常感谢Marcel。你的指示很有效!非常感谢。以下是视频:虽然我不是LinuxMint用户,也不是debian或ubuntu用户,但我怀疑您尝试安装的软件包存在根本性问题。我做了一些关于dpkg故障排除的研究,但没有运气。。。然后这个想法出现在我的脑海里,瞧。