【问题标题】:nodejs conflicts with node (re installing nodejs)nodejs 与 node 冲突(重新安装 nodejs)
【发布时间】:2013-09-18 15:16:13
【问题描述】:

我正在尝试重新安装节点。我正在尝试下载更新的版本。

所以为了卸载,我清除了 usr/local/bin/ and usr/local/src 中的 node 和 node_module 部分

按照这些说明进行操作

https://github.com/joysent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint

当我跑步时

xx.x@x:~/src/node-v0.10.18$ checkinstall

我明白了

dpkg: regarding .../node_0.10.18-1_i386.deb containing node:
 nodejs conflicts with node
  node (version 0.10.18-1) is to be installed.
  node provides node and is to be installed.
dpkg: error processing /home/hassan/src/node-v0.10.18/node_0.10.18-1_i386.deb (--install):
 conflicting packages - not installing node
Errors were encountered while processing:
 /home/hassan/src/node-v0.10.18/node_0.10.18-1_i386.deb
(END)

我不确定我还应该做什么。我尝试了其他一些东西。

:(

更多细节

这是显示在命令行上的内容

Copying files to the temporary directory...OK

Stripping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

Installing Debian package... FAILED!

*** Failed to install the package

Do you want to see the log file?  [y]: y


*** SIGINT received ***

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.

哦,我解决了!我通过突触删除了所有与节点相关的文件! :D!

【问题讨论】:

    标签: javascript linux node.js ubuntu npm


    【解决方案1】:

    您也许可以使用我在这里提供的预构建包:

    https://launchpad.net/~chris-lea/+archive/node.js

    他们安装了一个/usr/bin/nodejs 二进制文件,然后从它创建一个到/usr/bin/node 的符号链接。

    如果您要使用这些,请确保删除任何以前安装的痕迹,以便系统使用正确的二进制文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-16
      • 2021-03-10
      • 2020-11-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多