Install error
I'm running on a raspberry pi, and getting the following when trying to install:
WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"2.14.12"}) npm WARN deprecated [email protected]: use uuid module instead WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine [email protected]: wanted: {"node":">=4.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) npm ERR! tar.unpack unzip error /root/.npm/long/2.4.0/package.tgz npm ERR! Linux 4.4.38-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "castnow" "-g" npm ERR! node v0.10.29 npm ERR! npm v2.14.12 npm ERR! code Z_DATA_ERROR npm ERR! errno -3
npm ERR! invalid literal/lengths set npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request: npm ERR! /home/pi/castnow/npm-debug.log
Any suggestions?
I updated my NPM install, and now I get:
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN deprecated [email protected]: use uuid module instead npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm ERR! tar.unpack unzip error /root/.npm/long/2.4.0/package.tgz npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/node_modules/protobufjs/node_modules/bytebuffer/node_modules/bufferview/README.md' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Linux 4.4.38-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "castnow" "-g" npm ERR! cwd /home/pi/castnow npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! path /usr/local/lib/node_modules/castnow/node_modules/castv2-client/node_modules/castv2/node_modules/protobufjs/node_modules/bytebuffer/node_modules/bufferview/README.md npm ERR! code ENOENT npm ERR! errno 34 npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/castnow/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/fp/isEqualWith.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Linux 4.4.38-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "castnow" "-g"
npm ERR! cwd /home/pi/castnow
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/castnow/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/fp/isEqualWith.js
npm ERR! fstream_path /usr/local/lib/node_modules/castnow/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/fp/isEqualWith.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.
npm ERR! System Linux 4.4.38-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "castnow" "-g"
npm ERR! cwd /home/pi/castnow
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/castnow/node_modules/peerflix/node_modules/inquirer/node_modules/rx/src/core/linq/observable/groupjoin.js
npm ERR! fstream_path /usr/local/lib/node_modules/castnow/node_modules/peerflix/node_modules/inquirer/node_modules/rx/src/core/linq/observable/groupjoin.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.
npm ERR! System Linux 4.4.38-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "castnow" "-g" npm ERR! cwd /home/pi/castnow npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code Z_DATA_ERROR npm ERR! errno -3 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/castnow/npm-debug.log npm ERR! not ok code 0
OK, getting somewhere. Cleared npm cache and tried again. It looked like it worked, but it says it can't find castnow when I try to run it. This was installer output:
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN deprecated [email protected]: use uuid module instead npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine [email protected]: wanted: {"node":">=4.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) /usr/local/bin/castnow -> /usr/local/lib/node_modules/castnow/index.js [email protected] /usr/local/lib/node_modules/castnow ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected]) ├── [email protected] ([email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
OK, we're getting there. It's installed, but it wasn't doing anything when I executed it, so I set up a symbolic link from node -> nodejs.
Now I get:
/usr/local/lib/node_modules/castnow/node_modules/peerflix/node_modules/torrent-stream/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/simple-get/node_modules/unzip-response/index.js:2
const PassThrough = require('stream').PassThrough;
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
Please use node version >=6 and check again.