安装nodejs时macports出错

时间:2013-10-28 13:51:25

标签: macports

我想使用macports安装节点。

但它根本不起作用:

$ sudo port install nodejs
Password:
--->  Computing dependencies for nodejs
--->  Staging nodejs into destroot
Error: org.macports.destroot for port nodejs returned: xinstall: Cannot stat: out/Release/node, No such file or directory
Please see the log file for port nodejs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port nodejs failed
$

我尝试了以下命令,但仍无效:

$ sudo xcodebuild -license

1 个答案:

答案 0 :(得分:1)

我有同样的问题,我设法通过运行来解决

$ sudo xcodebuild -license

然后通过执行

清理构建文件从头开始构建
$ sudo port clean nodejs; sudo port install nodejs