Unable to build nw.js hello world application

坚强是说给别人听的谎言 提交于 2019-12-11 15:47:47

问题


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' }

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.

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.


回答1:


Build the application is using the old version

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


来源:https://stackoverflow.com/questions/34892201/unable-to-build-nw-js-hello-world-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!