无法构建nw.js你好世界应用程序 [英] Unable to build nw.js hello world application

查看:244
本文介绍了无法构建nw.js你好世界应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我自己尝试使用nw-builder为Linux构建一个hello world应用程序.当我执行运行命令nwbuild -r /path/to/myapp时,它会运行,但是当我尝试为Linux版本构建它时,会出现以下错误.

Myself trying to build a hello world application for Linux using nw-builder. It runs when I execute the run command nwbuild -r /path/to/myapp but when i am trying to build it for linux version it gives the following error.

 { [Error: ENOENT, no such file or directory '/usr/local/lib/node_modules/nw-builder/cache/0.13.0-beta4/linux32/nw.pak']
  errno: 34,
  code: 'ENOENT',
  path: '/usr/local/lib/node_modules/nw-builder/cache/0.13.0-beta4/linux32/nw.pak',
  syscall: 'lstat' }

当我检查缓存文件夹中目录的路径时,发现的是nw_100_percent.pakresources.pak文件而不是nw.pk文件.

When I checking the path for directory in cache folder, instead of nw.pk file i found nw_100_percent.pak and resources.pak files.

我该如何解决? 在我每次运行或构建应用程序时,是否还可以避免每次下载nw.js?我尝试提供版本号,但没有成功.

How can i solve the same? Also is it possible to avoid the downloading of nw.js each time when I run or build the application? I tried it with giving the version number but not succeeded.

推荐答案

使用旧版本构建应用程序

Build the application is using the old version

nwbuild ./ -p linux64 /path/to/myapp -v v0.12.3

这篇关于无法构建nw.js你好世界应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆