xat / castnow

commandline chromecast player
MIT License
3.81k stars 243 forks source link

Install error #198

Open thatoldguy19 opened 7 years ago

thatoldguy19 commented 7 years ago

I'm running on a raspberry pi, and getting the following when trying to install:

WARN engine windows-no-runnable@0.0.6: wanted: {"node":"0.6"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine get-stdin@5.0.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine unzip-response@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"2.14.12"}) npm WARN deprecated node-uuid@1.4.7: use uuid module instead WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine unzip-response@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine mdns-js@0.5.3: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine dns-js@0.2.1: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"2.14.12"}) WARN engine xmlbuilder@8.2.2: 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?

thatoldguy19 commented 7 years ago

I updated my NPM install, and now I get:

npm WARN engine windows-no-runnable@0.0.6: wanted: {"node":"0.6"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine get-stdin@5.0.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine unzip-response@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN deprecated node-uuid@1.4.7: use uuid module instead npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine unzip-response@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine mdns-js@0.5.3: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine dns-js@0.2.1: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine xmlbuilder@8.2.2: 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.:107:15) npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/castnow/node_modules/peerflix/node_modules/inquirer/node_modules/rx/src/core/linq/observable/groupjoin.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/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.:107:15) npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/castnow/node_modules/srt2vtt/node_modules' npm ERR! error rolling back castnow@0.4.18 { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/castnow/node_modules/srt2vtt/node_modules'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/usr/local/lib/node_modules/castnow/node_modules/srt2vtt/node_modules' } npm ERR! Error: invalid literal/lengths set npm ERR! at Zlib._binding.onerror (zlib.js:295:17) 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! 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

thatoldguy19 commented 7 years ago

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 windows-no-runnable@0.0.6: wanted: {"node":"0.6"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine get-stdin@5.0.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine unzip-response@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN deprecated node-uuid@1.4.7: use uuid module instead npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine unzip-response@2.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine mdns-js@0.5.3: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine dns-js@0.2.1: wanted: {"node":">= 4.1.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine xmlbuilder@8.2.2: 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 castnow@0.4.18 /usr/local/lib/node_modules/castnow ├── array-shuffle@1.0.1 ├── debounced-seeker@1.0.0 ├── range-parser@1.2.0 ├── query-string@1.0.1 ├── array-loop@1.0.0 ├── keypress@0.2.1 ├── stream-transcoder@0.0.5 ├── xtend@4.0.1 ├── router@0.6.2 ├── mime@1.3.4 ├── got@1.2.2 (object-assign@1.0.0) ├── minimist@1.2.0 ├── diveSync@0.3.0 (append@0.1.1) ├── xspfr@0.3.1 (underscore@1.6.0) ├── debug@2.6.1 (ms@0.7.2) ├── chalk@1.0.0 (escape-string-regexp@1.0.5, ansi-styles@2.2.1, supports-color@1.3.1, strip-ansi@2.0.1, has-ansi@1.0.3) ├── chromecast-player@0.2.3 (time-line@1.0.1, mutate.js@0.2.0, promiscuous@0.6.0, ware@1.3.0, chromecast-scanner@0.5.0) ├── playerui@1.2.0 (single-line-log@0.4.1, pad@0.0.5, chalk@0.5.1) ├── internal-ip@1.2.0 (meow@3.7.0) ├── read-torrent@1.3.0 (magnet-uri@2.0.1, request@2.16.6, parse-torrent@4.1.0) ├── castv2-client@1.2.0 (castv2@0.1.9) ├── srt2vtt@1.3.1 (utfx@1.0.1, codepage@1.4.0) ├── xml2js@0.4.17 (sax@1.2.2, xmlbuilder@4.2.1) └── peerflix@0.34.0 (network-address@0.0.5, clivas@0.1.4, open@0.0.5, windows-no-runnable@0.0.6, rc@0.4.0, pump@0.3.5, optimist@0.6.1, numeral@1.5.6, parse-torrent@5.8.1, torrent-stream@1.0.3, airplay-js@0.2.16, inquirer@0.8.5)

thatoldguy19 commented 7 years ago

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. (/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/index.js:8:21) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)

hemanth commented 7 years ago

Please use node version >=6 and check again.