nide支持windows操作系统么?

ayanmw 发布于 2013/03/08 17:12
阅读 633
收藏 0

我运行有错误

怀疑 就没为windows做支持

c:\>nide init
Created `.nide` directory
Added `.nide` directory to .gitignore
Added `.nide` directory to .npmignore
Nide running at http://localhost:8123


C:\Users\angle\AppData\Roaming\npm\node_modules\nide\server\server.js:61
            if (process.getuid() === 0) {
                        ^
TypeError: Object #<process> has no method 'getuid'
    at HTTPServer.exports.listen.nideUrl (C:\Users\angle\AppData\Roaming\npm\nod
e_modules\nide\server\server.js:61:25)
    at HTTPServer.g (events.js:192:14)
    at HTTPServer.EventEmitter.emit (events.js:126:20)
    at Server._listen2 (net.js:923:10)
    at process.startup.processNextTick.process._tickCallback (node.js:245:9)
getuid应该是Unix系统的用户ID,在windows上,直接使用,当然错误了。

加载中
0
ayanmw
ayanmw

好吧 我自问自答了

修改C:\Users\angle\AppData\Roaming\npm\node_modules\nide\server\server.js:61

把 process.getuid 和 process.setuid注释掉 或改成 true之类的,暂时可以运行 并在浏览器查看。

0
诚愚
诚愚

The Nide IDE is available both as a command-line tool and as a standalone Mac app. Please note that currently Windows is unsupported. (We're working on that) 

官方第一句就说了 目前还不支持windows

返回顶部
顶部