我想使用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

最佳答案

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

$ sudo xcodebuild -license


然后通过执行以下操作从头开始构建文件:

$ sudo port clean nodejs; sudo port install nodejs

关于macports - 安装Node.js时MacPorts错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19636575/

10-11 21:55