> phantomjs@2.1.7 install /usr/local/lib/node_modules/phantomjs
> node install.js
Considering PhantomJS found at /usr/local/bin/phantomjs
Looks like an `npm install -g`
Error checking path, continuing { Error: Cannot find module '/usr/local/lib/node_modules/phantomjs/lib/location'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at getLocationInLibModuleIfMatching (/usr/local/lib/node_modules/phantomjs/install.js:332:19)
at Promise._successFn (/usr/local/lib/node_modules/phantomjs/install.js:389:28)
at nextTickCallback (/usr/local/lib/node_modules/phantomjs/node_modules/kew/kew.js:47:28)
at _combinedTickCallback (internal/process/next_tick.js:95:7)
at process._tickCallback (internal/process/next_tick.js:161:9) code: 'MODULE_NOT_FOUND' }
/usr/local/lib/node_modules/phantomjs/phantomjs is not writable: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/phantomjs/phantomjs'
/tmp/phantomjs is not writable: EACCES: permission denied, mkdir '/tmp'
/usr/local/lib/node_modules/phantomjs/tmp/phantomjs is not writable: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/phantomjs/tmp'
Can not find a writable tmp directory, please report issue on https://github.com/Obvious/phantomjs/issues/59 with as much information as possible.
Похожесть изображения: чем меньше пикселов различается (расстояние хэмминга), тем более похоже изображение.