我正在尝试在 Windows 机器上安装咖啡脚本,但无法运行咖啡命令。这是我在控制台上尝试 coffee -v 的结果:
Program 'coffee' failed to execute: No application is associated with the specified file for this operation
At line:1 char:7
+ coffee <<<< -v.
At line:1 char:1
+ <<<< coffee -v
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
我安装了节点并尝试通过
npm install -g coffee-script@1.1.1
也
npm install -g http://github.com/jashkenas/coffee-script/tarball/master