1

Node will not delete on Linux Mint 13.

see the video here http://youtu.be/tV8HhS1xw2g and here http://www.youtube.com/watch?v=g8DNvv3iFdI

I installed via git but node failed to run see https://github.com/Jermolene/TiddlyWiki5/issues/73 for the tests I ran to try to get node to play nice.

so I uninstalled the git version and installed the Ubuntu v. apt-get install node $ which node /usr/local/bin/node

$ node --version
v0.5.11-pre

That node didn't work either... but I can't delete node now!

$ 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

It's not deleting but the system still sees it.

$ which node
/usr/local/bin/node

I tried the advice found on: Uninstall Node.JS using Linux command line? but that didn't work either.

$./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 is still installed:

$ 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

I tried dpkg... no joy.

$ 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

How to delete all remnants of node so that I can eventually try to install it again?

Thank you Dennis

4

2 回答 2

3

你不需要。只需再次下载并

git clone https://github.com/joyent/node
cd node
./configure --prefix=/usr/local
make
sudo make install

然后,您将覆盖以前安装的所有文件,因为您保持--prefix=/usr/local不变,因此安装过程应将所有文件覆盖到相同的相对文件路径中,如下/usr/local

希望有帮助!

于 2013-03-18T22:57:24.157 回答
0

您需要再次从 git 获取源代码,以便您可以./configure从源目录中运行脚本和制作脚本。我认为,那里的问题也是你使用了错误的前缀。鉴于您的which命令的输出显示node安装在 中/usr/local/bin/node,我认为您--prefix/usr/local/。所以试试:

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

从源目录中。

于 2013-03-18T23:05:08.167 回答