yaotian
V2EX  ›  Node.js

一次很差的node webkit体验

  •  
  •   yaotian · Jun 1, 2013 · 9703 views
    This topic created in 4743 days ago, the information mentioned may be changed or developed.
    看到大家聊的挺多关于node webkit, 所以昨晚花了半个小时体验了一下。
    但结果让人失望。

    1. 到网站下载执行程序。 https://s3.amazonaws.com/node-webkit/v0.5.1/node-webkit-v0.5.1-osx-ia32.zip

    2. 可下载的程序里面没有nw, 所以猜测nwsnapshot 就是文档里面说的nw

    3. 按照文档写了两个文件 index.html and package.json

    4. zip ./test.zip ./*

    5. mv test.zip test.nw

    然后用nwsnapshot test.nw , 屏幕上显示
    partial snapshot spaces: 0 47960 408 0 3920 3784
    startup snapshot spaces: 0 144840 61472 117408 3200 1096
    Compiled successfully.

    没有任何任何界面出现。后尝试数次无果。

    这次尝试就这样悲剧地结束了。
    8 replies    1970-01-01 08:00:00 +08:00
    clowwindy
        1
    clowwindy  
       Jun 1, 2013 via iPhone
    yaotian
        2
    yaotian  
    OP
       Jun 1, 2013
    @clowwindy 我之前已经将那个放入Application, 是的,那个是可以打开的界面。

    但那不是nw(文档里说的那个执行文件)
    clowwindy
        3
    clowwindy  
       Jun 1, 2013
    evan0
        4
    evan0  
       Jun 1, 2013
    怎么可以加载通过npm install -g安装的sqlite3?
    yangzh
        5
    yangzh  
       Jun 1, 2013
    nw 是 要配置的把node-WebKit.app 里面的某个文件链接到 usr local bin 下
    xuanhun
        7
    xuanhun  
       Apr 18, 2014
    node-webkit:教程
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1355 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 23:54 · PVG 07:54 · LAX 16:54 · JFK 19:54
    ♥ Do have faith in what you're doing.