简体   繁体   English

NVM 无法在 Cygwin 中安装任何版本的 Node.js

[英]NVM fails to install any version of Node.js in Cygwin

I've already learned that Node.js opted out of supporting Cygwin in the newer version, but NVM can't install the older version either.我已经了解到 Node.js 在新版本中选择不支持 Cygwin,但 NVM 也无法安装旧版本。 The error I'm getting:我得到的错误:

$ nvm install v0.4.12
Additional options while compiling:
######################################################################## 100.0%
C:\Python27\python.exe: can't open file '/home/wvxvw/.nvm/src/node-v0.4.12/tools\
/waf-light': [Errno 2] No such file or directory
nvm: install v0.4.12 failed!

(formatted for readability) (格式化以提高可读性)

I think this is because of Python binaries aren't aware of Cygwin-style path (and cannot find /home/ directory) I tried building from sources (same version) and am facing the same problem).我认为这是因为 Python 二进制文件不知道 Cygwin 样式的路径(并且找不到/home/目录)我尝试从源代码(相同版本)构建并面临同样的问题)。 I'm not sure however what to do.但是我不确定该怎么做。 I wouldn't like to change Python installed in Windows for Python that can be installed through Cygwin.我不想将安装在 Windows 中的 Python 更改为可以通过 Cygwin 安装的 Python。 And if this error isn't just the tip of the iceberg, I'd maybe just change the Makefile.如果这个错误不仅仅是冰山一角,我可能只是更改 Makefile。

The question is directed to those who might tell whether it makes sense to try to "fix" the Makefile, or should I just use Cygwin's version of Python (its problem is very buggy fork , but I think I could live with that...)问题针对那些可能会告诉尝试“修复” Makefile 是否有意义的人,或者我应该只使用 Cygwin 的 Python 版本(它的问题是非常有问题的fork ,但我想我可以忍受...... )

命令不正确,使用没有 v 的版本。尝试: nvm install 0.4.12

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM