Open bendiy opened 9 years ago
I think I've found a work around for this issue. If I point to the full path, instead of the relative path, it loads the package correctly. So in the example above:
plv8x -d postgresql://admin:admin@192.168.0.1:5432/testplv8x -i LiveScript:node_modules/LiveScript/package.json
needs to be:
plv8x -d postgresql://admin:admin@192.168.0.1:5432/testplv8x -i LiveScript:/home/my-user-here/some-path/node_modules/LiveScript/package.json
Can the README.md
be changed to:
% npm i -g qs
% plv8x -i qs # same as: plv8x -i qs:/full/path/to/qs/package.json
% psql test
Or add support for relative paths?
The command in your example does not work as expected. I'm running this:
It causes #23 to happen.
I did not want to install these packages globally with the
-g
flag, so I just rannpm install qs
and pointed to thepackage.js
.What does work is this:
But that requires a global install of the packages I want to load.