EyalAr / lwip

Light Weight Image Processor for NodeJS
MIT License
2.37k stars 231 forks source link

lwip failure during attempt to install jarvis-bot on Ubuntu Linux LTS 16.04 #293

Open jkeenan opened 7 years ago

jkeenan commented 7 years ago

Today, using apt install XXX, I installed npm and node.js on an Ubuntu machine:

$ uname -a
Linux zareason 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Following the instructions at https://www.npmjs.com/package/jarvis-bot, I then called:

npm install jarvis-bot

Examining the error output, I subsequently installed several other Ubuntu packages and re-tried the command as:

npm install --no-options jarvis-bot

Here is the output:

$ npm install --no-optional jarvis-bot
▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine jarvis-bot@0.1.6: wanted: {"node":"0.12.x"} (current: {"node":"4.2.6","npm":"3.5.2"})
npm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.

> lwip@0.0.8 install /home/jkeenan/node/node_modules/lwip
> node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:354:16)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-62-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/jkeenan/node/node_modules/lwip
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
/home/jkeenan/node
├─┬ hubot@2.19.0
│ └─┬ express@3.21.2
│   └─┬ connect@2.30.2
│     ├─┬ body-parser@1.13.3
│     │ └─┬ type-is@1.6.14
│     │   └─┬ mime-types@2.1.14 
│     │     └── mime-db@1.26.0 
│     ├─┬ compression@1.5.2
│     │ ├─┬ accepts@1.2.13
│     │ │ └─┬ mime-types@2.1.14 
│     │ │   └── mime-db@1.26.0 
│     │ └─┬ compressible@2.0.9
│     │   └── mime-db@1.26.0 
│     ├─┬ errorhandler@1.4.3
│     │ └─┬ accepts@1.3.3
│     │   └─┬ mime-types@2.1.14 
│     │     └── mime-db@1.26.0 
│     ├─┬ serve-index@1.7.3
│     │ └─┬ mime-types@2.1.14 
│     │   └── mime-db@1.26.0 
│     └─┬ type-is@1.6.14
│       └─┬ mime-types@2.1.14 
│         └── mime-db@1.26.0 
├── lodash@4.17.4 
├─┬ mitsuku-api@0.1.1
│ └─┬ superagent@1.8.5
│   └─┬ form-data@1.0.0-rc3
│     └─┬ mime-types@2.1.14 
│       └── mime-db@1.26.0 
├─┬ reqscraper@0.0.2
│ ├─┬ request@2.79.0 
│ │ ├─┬ form-data@2.1.2
│ │ │ └─┬ mime-types@2.1.14 
│ │ │   └── mime-db@1.26.0 
│ │ ├─┬ mime-types@2.1.14 
│ │ │ └── mime-db@1.26.0 
│ │ └── qs@6.3.0 
│ └─┬ x-ray@2.3.1
│   ├─┬ cheerio@0.20.0
│   │ └─┬ jsdom@7.2.2
│   │   └─┬ request@2.79.0 
│   │     ├─┬ mime-types@2.1.14 
│   │     │ └── mime-db@1.26.0 
│   │     └── qs@6.3.0 
│   └─┬ x-ray-crawler@2.0.2
│     └─┬ http-context@1.1.1
│       └─┬ type-is@1.6.14
│         └─┬ mime-types@2.1.14 
│           └── mime-db@1.26.0 
├─┬ twit@2.2.5
│ └─┬ request@2.79.0 
│   ├─┬ mime-types@2.1.14 
│   │ └── mime-db@1.26.0 
│   └── qs@6.3.0 
└─┬ twitter@1.7.0
  └─┬ request@2.79.0 
    ├─┬ mime-types@2.1.14 
    │ └── mime-db@1.26.0 
    └── qs@6.3.0 

npm WARN enoent ENOENT: no such file or directory, open '/home/jkeenan/node/package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--no-optional" "jarvis-bot"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE

npm ERR! lwip@0.0.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lwip@0.0.8 install script 'node-gyp rebuild'.
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 lwip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs lwip
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lwip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/jkeenan/node/npm-debug.log

I can provide npm-debug.log on request, but all the WARN and ERR statements contained therein are cited above.

Can you suggest a way forward?

Thank you very much. Jim Keenan