Using globally installed modules in node-webkit

2 views
Skip to first unread message

Andy Green

unread,
Dec 2, 2012, 12:14:01 AM12/2/12
to node-...@googlegroups.com
Is there currently any way to use globally installed npm modules in node-webkit? I know that it's possible to use modules by copying the node_modules folder into a node_webkit app's folder, but I still haven't found out how to use globally installed modules.

Roger WANG

unread,
Dec 2, 2012, 1:33:15 AM12/2/12
to Andy Green, node-...@googlegroups.com
Andy Green <jar...@gmail.com> writes:

> Is there currently any way to use globally installed npm modules in
> node-webkit?

currently node-webkit looks up $HOME/.node_modules,
$HOME/.node_libraries but not $PREFIX/lib/node_modules

We'll fix this. Before that you can create symlinks to
$PREFIX/lib/node_modules in the applications directory.

> I know that it's possible to use modules by copying the node_modules
> folder into a node_webkit app's folder, but I still haven't found out
> how to use globally installed modules.

--
Roger WANG Intel Open Source Technology Center

Reply all
Reply to author
Forward
0 new messages