Closed hopewise closed 6 years ago
Looks like the example simply requires the top level dir here:
but you have the library in your example's node_modules
directory:
[node_or_tools] Success: "/Users/samir/Downloads/node-or-tools-master/example/node_modules/node_or_tools/lib/binding/node_or_tools.node"
The proper solution is to add the dependency to the example's package.json
and then properly require it in the example. Not sure why we didn't do this in the first place.
What you also can do is:
node_modules
directories from top level and example directorynpm install
in the top level dir, thennpm install
in the example dirthanks, I've installed successfully now your project is very interesting! 💘
When I try to install the example here: https://github.com/mapbox/node-or-tools/tree/master/example I get error:
although I did:
and I can see
node_or_tools
is already installed:any idea?