2
回答
nide支持windows操作系统么?
华为云实践训练营,热门技术免费实践!>>>   

我运行有错误

怀疑 就没为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上,直接使用,当然错误了。

举报
ayanmw
发帖于5年前 2回/605阅
顶部