Mozilla搞了一个nodejs的游戏 我想在本地试试,可是安装模块老出错,郁闷啊 求指导
这个是 那个游戏源码: https://github.com/mozilla/BrowserQuest
下面是log
ERR! websocket@1.0.4 preinstall: make validator
ERR! cmd "/c" "make validator"
failed with 1
ERR!
ERR! Failed at the websocket@1.0.4 preinstall script.
ERR! This is most likely a problem with the websocket package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! make validator
ERR! You can get their info via:
ERR! npm owner ls websocket
ERR! There is likely additional logging output above.
ERR!
ERR! System Windows_NT 6.1.7601
ERR! command “C:\Program Files\nodejs\\node.exe” “C:\Program Files\nodejs \node_modules\npm\bin\npm-cli.js” “install” “websocket”
ERR! cwd D:\Work Files\Node\BrowserQuest\server
ERR! node -v v0.7.7
ERR! npm -v 1.1.15
ERR! code ELIFECYCLE
ERR! message websocket@1.0.4 preinstall: make validator
ERR! message cmd "/c" "make validator"
failed with 1
ERR! errno {}
verbose exit [ 1, true ]
node-waf什么的太郁闷了,在win下是不支持的. 之前安装future出错, 在npm github问了, 人家回答, win下不支持node-waf 要作者换个编译方式
node-waf will never work on Windows. Please bug the forever authors to port to node-gyp instead.
https://github.com/isaacs/npm/issues/1651#issuecomment-4577809