Windows上的kanso产生错误ENOENT

时间:2013-11-06 12:57:55

标签: couchapp kanso

我一直在使用Kanso编写CouchApp。我没有更改应用程序,现在当我需要进行一些更改时,我突然发现无法解释的错误。

我在我的Windows 8机器上安装了node.js和kanso 当我从文档创建最简单的应用程序时,我得到了这个结果:

C:\temp\test>kanso install
installing from directory .
Building version tree...
checking attachments
downloading http://kan.so/repository/attachments/attachments-0.0.10.tar.gz
Error: Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)
Failed

如果我在Mac上运行相同的命令(10.9),它可以正常工作。如果我将packages目录复制到Windows机器现在显示OK,但当我尝试推送应用程序时,我得到另一个错误:

C:\temp\test>kanso push http://localhost:5984/test
Reading dependency tree...
Error: Cannot find package 'C:\temp\test\C:\temp\test'
    at C:\...\npmnode_modules\kanso\lib\packages.js:509:21
    at C:\...\npmnode_modules\kanso\lib\packages.js:467:9
    at Object.async.forEach (C:\...\npmnode_modules\nso\node_modules\async\lib\async.js:93:20)
    at Object.exports.availableVersions (C:\...\npmnode_modules\kanso\lib\packages.js:444:11)
    at C:\...\npmnode_modules\kanso\lib\packages.js:489:13
    at Object.memoized [as resolve] (C:\...\npmnode_modules\kanso\node_modules\async\lib\async.js:670:20)
    at Object.exports.readMeta (C:\...\npmnode_modules\kanso\lib\packages.js:128:13)
    at Object.exports.load (C:\...\npmnode_modules\kanso\lib\packages.js:42:13)
    at Object.exports.loadApp (C:\...\npmnode_modules\kanso\lib\commands\push.js:126:14)
    at C:\...\npmnode_modules\kanso\lib\commands\push.
js:82:21
Failed

0 个答案:

没有答案