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

标签 node.js nvm

$ 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/

相关文章:

javascript - 使用 Node 、mysql、express 和纯 js 从数据库中删除一行

node.js - 如何将 WordPress 博客添加到实时 Nodejs 应用程序?

node.js 中的 Django 密码

python - 如何在 ubuntu 12.04 上为 node.js 安装 nvm

node.js - nvm: N/A: 版本 "N/A -> N/A"尚未安装

node.js - Node 检查器调试

git - 组合 commitizen + husky 时无法提交 : nvm is not compatible with the "npm_config_prefix" environment variable

node.js - nvm 别名默认 Node.js 版本不持久

javascript - Grunt.js DEV 与 PROD 任务

javascript - 上传 Intent 函数 Dialogflow V2