Closed meetar closed 8 years ago
That's so odd, especially as it only occurs in the ./queues/buildingObj.js
file – seeing as bull is used in nearly all other files and those files are loaded / run before this one.
Running npm install
shouldn't affect the polygon-city
command because they're installed in different locations, unless global modules look in the current directory if they can't find a module (not sure).
I checked my global install directory and it seems to have bull installed – does yours show the same (directory may be different)?
$ ls -lah /usr/local/lib/node_modules/polygon-city-cli/node_modules
What happens if you fully uninstall the global module and install the latest version (0.1.3)?
$ npm uninstall -g polygon-city-cli
$ npm install -g polygon-city-cli@latest
I just noticed that the path in the error doesn't look like the directory that global NPM packages should be installed in – you don't even need to have the repo on your machine to install this.
What exactly are the chain of commands that lead you to this issue?
As far as I can tell, the local module is being found as a fallback somehow. And a clean reinstall doesn't seem to help.
The chain of commands:
redis-server
npm install -g polygon-city-cli@latest
polygon-city -e 31255 -m "elevation-key-here" -o ./output
a_00_10_Lod2.gml
On Wed, Dec 16, 2015 at 5:12 AM, Robin Hawkes notifications@github.com wrote:
I just noticed that the path in the error doesn't look like the directory that global NPM packages should be installed in – you don't even need to have the repo on your machine to install this.
What exactly are the chain of commands that lead you to this issue?
— Reply to this email directly or view it on GitHub https://github.com/polygon-city/polygon-city-cli/issues/1#issuecomment-165055950 .
I've just pushed 0.1.4 which should fix this – the problem was that I was requiring modules relative to the directory that the command was being run from, rather than looking for them in the directory that NPM installed everything to.
Let me know if you still see the issue with 0.1.4
…but when I
npm install
and run it (either withpolygon-city
or directly with./index.js
, the module is found and the command runs. ¯_(ツ)_/¯