yathin / aardwolf2

Aardwolf camera trap management software
MIT License
5 stars 1 forks source link

Install Ubuntu 16.04 #1

Closed lbell closed 8 years ago

lbell commented 8 years ago

Not sure if I'm even doing this right, but a download and: npm install results in:

$ npm install
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer

> sqlite3@3.1.4 install /path/aardwolf2-master/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
Aardwolf2@2.0.1 /path/aardwolf2-master
├─┬ body-parser@1.13.3 
│ ├── bytes@2.1.0 
│ ├── content-type@1.0.2 
│ ├── depd@1.0.1 
│ ├─┬ http-errors@1.3.1 
│ │ ├── inherits@2.0.1 
│ │ └── statuses@1.3.0 
│ ├── iconv-lite@0.4.11 
│ ├─┬ on-finished@2.3.0 
│ │ └── ee-first@1.1.1 
│ ├── qs@4.0.0 
│ ├─┬ raw-body@2.1.6 
│ │ ├── bytes@2.3.0 
│ │ ├── iconv-lite@0.4.13 
│ │ └── unpipe@1.0.0 
│ └─┬ type-is@1.6.13 
│   ├── media-typer@0.3.0 
│   └─┬ mime-types@2.1.11 
│     └── mime-db@1.23.0 
├─┬ cookie-parser@1.3.5 
│ ├── cookie@0.1.3 
│ └── cookie-signature@1.0.6 
├─┬ dateformat@1.0.12 
│ ├── get-stdin@4.0.1 
│ └─┬ meow@3.7.0 
│   ├─┬ camelcase-keys@2.1.0 
│   │ └── camelcase@2.1.1 
│   ├── decamelize@1.2.0 
│   ├─┬ loud-rejection@1.4.1 
│   │ ├─┬ currently-unhandled@0.4.1 
│   │ │ └── array-find-index@1.0.1 
│   │ └── signal-exit@2.1.2 
│   ├── map-obj@1.0.1 
│   ├── minimist@1.2.0 
│   ├─┬ normalize-package-data@2.3.5 
│   │ ├── hosted-git-info@2.1.5 
│   │ ├─┬ is-builtin-module@1.0.0 
│   │ │ └── builtin-modules@1.1.1 
│   │ ├── semver@5.1.0 
│   │ └─┬ validate-npm-package-license@3.0.1 
│   │   ├─┬ spdx-correct@1.0.2 
│   │   │ └── spdx-license-ids@1.2.1 
│   │   └─┬ spdx-expression-parse@1.0.2 
│   │     └── spdx-exceptions@1.0.4 
│   ├── object-assign@4.1.0 
│   ├─┬ read-pkg-up@1.0.1 
│   │ ├─┬ find-up@1.1.2 
│   │ │ ├── path-exists@2.1.0 
│   │ │ └─┬ pinkie-promise@2.0.1 
│   │ │   └── pinkie@2.0.4 
│   │ └─┬ read-pkg@1.1.0 
│   │   ├─┬ load-json-file@1.1.0 
│   │   │ ├─┬ parse-json@2.2.0 
│   │   │ │ └─┬ error-ex@1.3.0 
│   │   │ │   └── is-arrayish@0.2.1 
│   │   │ ├── pify@2.3.0 
│   │   │ └─┬ strip-bom@2.0.0 
│   │   │   └── is-utf8@0.2.1 
│   │   └── path-type@1.1.0 
│   ├─┬ redent@1.0.0 
│   │ ├─┬ indent-string@2.1.0 
│   │ │ └─┬ repeating@2.0.1 
│   │ │   └─┬ is-finite@1.0.1 
│   │ │     └── number-is-nan@1.0.0 
│   │ └── strip-indent@1.0.1 
│   └── trim-newlines@1.0.0 
├─┬ debug@2.2.0 
│ └── ms@0.7.1 
├─┬ drivelist@2.0.14 
│ ├─┬ js-yaml@3.6.1 
│ │ ├── argparse@1.0.7 
│ │ └── esprima@2.7.2 
│ ├── lodash@3.10.1 
│ ├── table-parser@0.0.3 
│ └─┬ underscore.string@3.3.4 
│   ├── sprintf-js@1.0.3 
│   └── util-deprecate@1.0.2 
├── exiftool@0.0.3 
├─┬ express@4.13.4 
│ ├─┬ accepts@1.2.13 
│ │ └── negotiator@0.5.3 
│ ├── array-flatten@1.1.1 
│ ├── content-disposition@0.5.1 
│ ├── cookie@0.1.5 
│ ├── depd@1.1.0 
│ ├── escape-html@1.0.3 
│ ├── etag@1.7.0 
│ ├── finalhandler@0.4.1 
│ ├── fresh@0.3.0 
│ ├── merge-descriptors@1.0.1 
│ ├── methods@1.1.2 
│ ├── parseurl@1.3.1 
│ ├── path-to-regexp@0.1.7 
│ ├─┬ proxy-addr@1.0.10 
│ │ ├── forwarded@0.1.0 
│ │ └── ipaddr.js@1.0.5 
│ ├── range-parser@1.0.3 
│ ├─┬ send@0.13.1 
│ │ ├── depd@1.1.0 
│ │ ├── destroy@1.0.4 
│ │ ├── mime@1.3.4 
│ │ └── statuses@1.2.1 
│ ├─┬ serve-static@1.10.3 
│ │ └─┬ send@0.13.2 
│ │   ├── depd@1.1.0 
│ │   └── statuses@1.2.1 
│ ├── utils-merge@1.0.0 
│ └── vary@1.0.1 
├─┬ fs-extra@0.26.2 
│ ├── graceful-fs@4.1.4 
│ ├── jsonfile@2.3.1 
│ ├── klaw@1.2.0 
│ ├── path-is-absolute@1.0.0 
│ └─┬ rimraf@2.5.2 
│   └─┬ glob@7.0.3 
│     ├─┬ inflight@1.0.5 
│     │ └── wrappy@1.0.2 
│     ├─┬ minimatch@3.0.0 
│     │ └─┬ brace-expansion@1.1.4 
│     │   ├── balanced-match@0.4.1 
│     │   └── concat-map@0.0.1 
│     └── once@1.3.3 
├─┬ gm@1.21.1 
│ ├── array-parallel@0.1.3 
│ └── array-series@0.1.5 
├─┬ jade@1.11.0 
│ ├── character-parser@1.2.1 
│ ├─┬ clean-css@3.4.17 
│ │ ├── commander@2.8.1 
│ │ └─┬ source-map@0.4.4 
│ │   └── amdefine@1.0.0 
│ ├── commander@2.6.0 
│ ├─┬ constantinople@3.0.2 
│ │ └── acorn@2.7.0 
│ ├─┬ jstransformer@0.0.2 
│ │ ├── is-promise@2.1.0 
│ │ └─┬ promise@6.1.0 
│ │   └── asap@1.0.0 
│ ├─┬ mkdirp@0.5.1 
│ │ └── minimist@0.0.8 
│ ├─┬ transformers@2.1.0 
│ │ ├─┬ css@1.0.8 
│ │ │ ├── css-parse@1.0.4 
│ │ │ └── css-stringify@1.0.5 
│ │ ├─┬ promise@2.0.0 
│ │ │ └── is-promise@1.0.1 
│ │ └─┬ uglify-js@2.2.5 
│ │   ├─┬ optimist@0.3.7 
│ │   │ └── wordwrap@0.0.3 
│ │   └── source-map@0.1.43 
│ ├─┬ uglify-js@2.6.2 
│ │ ├── async@0.2.10 
│ │ ├── source-map@0.5.6 
│ │ ├── uglify-to-browserify@1.0.2 
│ │ └─┬ yargs@3.10.0 
│ │   ├── camelcase@1.2.1 
│ │   ├─┬ cliui@2.1.0 
│ │   │ ├─┬ center-align@0.1.3 
│ │   │ │ ├─┬ align-text@0.1.4 
│ │   │ │ │ ├─┬ kind-of@3.0.3 
│ │   │ │ │ │ └── is-buffer@1.1.3 
│ │   │ │ │ ├── longest@1.0.1 
│ │   │ │ │ └── repeat-string@1.5.4 
│ │   │ │ └── lazy-cache@1.0.4 
│ │   │ ├── right-align@0.1.3 
│ │   │ └── wordwrap@0.0.2 
│ │   └── window-size@0.1.0 
│ ├── void-elements@2.0.1 
│ └─┬ with@4.0.3 
│   ├── acorn@1.2.2 
│   └── acorn-globals@1.0.9 
├─┬ json2csv@3.0.2 
│ ├─┬ cli-table@0.3.1 
│ │ └── colors@1.0.3 
│ ├─┬ commander@2.9.0 
│ │ └── graceful-readlink@1.0.1 
│ └─┬ lodash.get@3.7.0 
│   ├── lodash._baseget@3.7.2 
│   └─┬ lodash._topath@3.8.1 
│     └── lodash.isarray@3.0.4 
├─┬ morgan@1.6.1 
│ ├── basic-auth@1.0.4 
│ └── on-headers@1.0.1 
└── serve-favicon@2.3.0 

npm ERR! Linux 4.6.0-040600rc7-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! sqlite3@3.1.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the sqlite3@3.1.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /path/aardwolf2-master/npm-debug.log
yathin commented 8 years ago

I haven't tried this with Ubuntu yet, but will do so tomorrow. However, a quick Google search shows that this could be the error: https://github.com/nodejs/node-v0.x-archive/issues/3911 (would be surprised if it it still the case, but worth a try).

I will update this bug tomorrow after trying an install on Ubuntu.

yathin commented 8 years ago

Please note that you must install node-legacy via: sudo apt-get install nodejs-legacy to fix this issue.

Thanks for reporting, I have noted this down in the README under the ubuntu installation section.