gpt4 book ai didi

node.js - nodejs : installing stable (0. 12.7) 与 nvm 失败

转载 作者:太空宇宙 更新时间:2023-11-04 00:51:12 24 4
gpt4 key购买 nike

$ nvm install stable
######################################################################## 100.0%
mv: cannot move ‘/home/me/.nvm/bin/node-v0.12.7-linux-x64’ to ‘/home/me/.nvm/versions/v0.12.7’: No such file or directory
Binary download failed, trying source.
######################################################################## 100.0%
File "./configure", line 362
'''
^
SyntaxError: Missing parentheses in call to 'print'
nvm: install v0.12.7 failed!

这是在 Manjaro Linux 机器上,运行 nvm 版本 0.20.0。

我直接尝试过nvm 安装 v0.12.7nvm install 0.12.7 以及nvm安装0.12.6

都报告了相同的错误。

我还尝试重新运行 nvm 安装脚本,但它告诉我它已经安装了 nvm。我有点不愿意删除 .nvm 并重新安装它(没有明显的原因;))

最佳答案

我不知道是什么导致了第一个问题:

mv: cannot move ‘/home/me/.nvm/bin/node-v0.12.7-linux-x64’ to ‘/home/me/.nvm/versions/v0.12.7’: No such file or directory
Binary download failed, trying source.

但随后它尝试从源代码开始并尝试使用 python 进行编译。错误:

SyntaxError: Missing parentheses in call to 'print'

来自 python - python3。通过暂时更改 manjaro 中的符号链接(symbolic link)/usr/bin/python -> python3/usr/bin/python -> python2

我似乎已经“解决”了这个问题......

关于node.js - nodejs : installing stable (0. 12.7) 与 nvm 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32379868/

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