我想在 Windows 中安装 Mojito。我在 Windows 中有 MinGW 和 nodejs。但我无法使用npm install -g mojito
. 它在Windows中安装时出现以下错误
npm WARN package.json connect@1.8.2 No README.md file found!
npm WARN engine connect@1.8.2: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"0.8.3","npm":"1.1.43"})
npm WARN engine express@2.5.2: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"0.8.3","npm":"1.1.43"})
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: yui3@0.7.12
npm ERR! notsup Valid OS: darwin,linux
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: ia32
npm ERR! System Windows_NT 6.1.7601
npm ERR! code EBADPLATFORM
npm ERR! stack Error: Unsupported
npm ERR! stack at checkPlatform (c:\Program Files (x86)\nodejs\node_modules\npm\lib\install.js:747:14)
npm ERR! stack at Array.1 (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
npm ERR! stack at LOOP (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
npm ERR! stack at c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:18:7
npm ERR! stack at checkEngine (c:\Program Files (x86)\nodejs\node_modules\npm\lib\install.js:726:10)
npm ERR! stack at Array.0 (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
npm ERR! stack at LOOP (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
npm ERR! stack at chain (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:20:5)
npm ERR! stack at installOne_ (c:\Program Files (x86)\nodejs\node_modules\npm\lib\install.js:692:3)
npm ERR! stack at installOne (c:\Program Files (x86)\nodejs\node_modules\npm\lib\install.js:615:3)
npm http GET https://registry.npmjs.org/mkdirp/0.0.7
在雅虎开发者网站中明确提到基于 Unix 的系统是先决条件,但是是否可以使用 cygwin 或 mingw 将其安装在 windows 上。