NAE 中怎么运行 coffeescript 以及如何进行 npm 管理?

10 views
Skip to first unread message

Zoom.Quiet

unread,
Apr 16, 2012, 1:09:38 PM4/16/12
to cno...@googlegroups.com
以前在后台"代码管理" 中有 npm 命令窗口,现在取消了
- 那怎么知道 NAE 中是否有需要的 npm?
- 全部使用 npm 的本地安装,然后上传?

俺是 Pythoner 没有 CoffeeScript 活不成吼
- 但是,怎么在 NAE 中运行 coffee 脚本作为应用?
packet.json 中
,"main" : "app.coffee"
吼俺:
TypeError: Property '.coffee' of object #<Object> is not a function
at [object Object].load
(/home/admin/cnae/git/cnode-app-engine/lib/sandbox.js:150:17)
at Function._loadFile
(/home/admin/cnae/git/cnode-app-engine/lib/sandbox.js:176:10)
at Function.run
(/home/admin/cnae/git/cnode-app-engine/lib/sandbox.js:357:18)
at Array.0 (/home/admin/cnae/git/cnode-app-engine/lib/child.js:83:11)
at EventEmitter._tickCallback (node.js:192:40)

如果使用
,"main" : "coffee app.coffee"

根本就:
$ nae restart
[INFO] * connection established !
[ERROR] urisaok start fail, process exit code: 1, sig:null
[INFO] * connection closed !

怎么整的,大家?

--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
俺: http://about.me/zoom.quiet
文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/

题叶

unread,
Apr 17, 2012, 12:27:33 AM4/17/12
to cno...@googlegroups.com
+1
另外能不能用上 package.json 文件.. 直接写了安装的习惯比零零碎碎弄要好

Zoom.Quiet

unread,
Apr 17, 2012, 12:47:34 AM4/17/12
to cno...@googlegroups.com
在 2012年4月17日 下午12:27,题叶 <jiyin...@gmail.com> 写道:
> +1
> 另外能不能用上 package.json 文件.. 直接写了安装的习惯比零零碎碎弄要好
>

- 看帮助中説,其实是建议的
- 但是,使用后效果如何,得猜,,

Reply all
Reply to author
Forward
0 new messages