gpt4 book ai didi

macports - 安装nodejs时macports出错

转载 作者:行者123 更新时间:2023-12-02 21:42:49 25 4
gpt4 key购买 nike

我想使用 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 - 安装nodejs时macports出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19636575/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com