我在Windows 8.1上使用cygwin来拥有一个Unix shell.但我不能从它运行命令,如npm.
我该怎么做呢?添加某种env var到cygwin?为什么它不使用Windows PATH?
编辑:其实我觉得我在这里误解了这个问题.看起来npm是由cygwin发现的,但它无法使用.例如,我可以毫无困难地使用来自cygwin的git.
$ npm
/cygdrive/d/Logiciels installés/nodejs/npm: line 2: $'\r' : command not found
/cygdrive/d/Logiciels installés/nodejs/npm: line 4: $'\r' : command not found
/cygdrive/d/Logiciels installés/nodejs/npm: line 5: Syntax error around « $'in\r' »
'cygdrive/d/Logiciels installés/nodejs/npm: line 5: `case `uname` in
Run Code Online (Sandbox Code Playgroud)
所以,它看起来更像是一个npm问题.
我已经安装好了nodejs。当我尝试npm通过电源外壳或cmd使用它时,它会返回
该系统找不到指定的路径。
如果我运行,node -v一切正常。我也可以npm通过nodejs控制台使用。我尝试多次卸载和重新安装nodejs,但没有帮助。
关于什么原因的任何想法?
我刚开始学习一周前的轨道,一切都工作到今天.现在,当我启动Ruby命令提示符时,它说:
The system cannot find the path specified.
# Under Rails Environment Configuration.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
---
Run Code Online (Sandbox Code Playgroud)
ruby和rails的路径正确显示.
我正在使用Windows Vista 32位.任何帮助将不胜感激,谢谢!