patrickjquinn / P-Brain.ai-RasPi

Headless Client for P-Brain.ai Virtual Assistant on Raspberry Pi
22 stars 11 forks source link

Error installing snowboy #3

Closed mobilars closed 7 years ago

mobilars commented 7 years ago

I guess this isn't really a fault in your script, but when I run that Raspberry Pi install script, the execution halts while installing snowboy. It seems like there's no file at that URL it's trying to install. Any idea what could be wrong? I'm running a Raspberry Pi 3 with the latest Rasbpian. (I'm guessing this is a problem with the snowboy package?)

... way down while installing...

snowboy@1.1.0 install /home/pi/pibrain/node_modules/snowboy node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.1.0/Release/snowboy-v1.1.0-node-v11-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.1.0 and node@0.10.29 (node-v11 ABI) (falling back to source compile with node-gyp)

module.js:340 throw err;

patrickjquinn commented 7 years ago

My bet is on there being a problem with my script actually! Was this while running curl -sL https://raw.githubusercontent.com/patrickjquinn/P-Brain.ai-RasPi/master/raspberrypi.sh | bash or when installing manually?

mobilars commented 7 years ago

Yes, it was while running that. There was also an error a bit further down using something called node-pre-gyp so I'm trying to install that manually and rerun npm install...

mobilars commented 7 years ago

That didn't seem to work either. Here's the full error console output while doing npm install (after first having run the curl etc that you did (and cd-ing into the directory).

pi@raspberrypi:~/pibrain/P-Brain.ai-RasPi $ npm install npm WARN package.json P-Brain.ai-Client@0.5.3 No repository field. npm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine co@4.6.0: wanted: {"iojs":">= 1.0.0","node":">= 0.12.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine form-data@2.1.2: wanted: {"node":">= 0.12"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hawk@3.1.3: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) |

snowboy@1.1.0 preinstall /home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy npm install node-pre-gyp

npm WARN engine request@2.79.0: wanted: {"node":">= 4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine form-data@2.1.2: wanted: {"node":">= 0.12"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hawk@3.1.3: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"}) node-pre-gyp@0.6.32 node_modules/node-pre-gyp ├── semver@5.3.0 ├── nopt@3.0.6 (abbrev@1.0.9) ├── mkdirp@0.5.1 (minimist@0.0.8) ├── rc@1.1.6 (ini@1.3.4, strip-json-comments@1.0.4, deep-extend@0.4.1, minimist@1.2.0) ├── tar@2.2.1 (inherits@2.0.3, block-stream@0.0.9, fstream@1.0.10) ├── npmlog@4.0.2 (set-blocking@2.0.0, console-control-strings@1.1.0, are-we-there-yet@1.1.2, gauge@2.7.2) ├── tar-pack@3.3.0 (uid-number@0.0.6, once@1.3.3, debug@2.2.0, readable-stream@2.1.5, fstream@1.0.10, fstream-ignore@1.0.5) ├── rimraf@2.5.4 (glob@7.1.1) └── request@2.79.0 (is-typedarray@1.0.0, aws-sign2@0.6.0, oauth-sign@0.8.2, forever-agent@0.6.1, tunnel-agent@0.4.3, caseless@0.11.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, aws4@1.5.0, uuid@3.0.1, combined-stream@1.0.5, qs@6.3.0, form-data@2.1.2, mime-types@2.1.14, tough-cookie@2.3.2, har-validator@2.0.6, hawk@3.1.3, http-signature@1.1.1)

snowboy@1.1.0 install /home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.1.0/Release/snowboy-v1.1.0-node-v11-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.1.0 and node@0.10.29 (node-v11 ABI) (falling back to source compile with node-gyp)

module.js:340 throw err; ^ Error: Cannot find module 'nan' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at [eval]:1:1 at Object. ([eval]-wrapper:6:22) at Module._compile (module.js:456:26) at evalScript (node.js:536:25) at startup (node.js:80:7) at node.js:906:3 gyp: Call to 'node -e "require('nan')"' returned exit status 8. 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:344:16) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12) gyp ERR! System Linux 4.4.38-v7+ gyp ERR! command "nodejs" "/usr/bin/node-gyp" "configure" "--fallback-to-build" "--module=/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/lib/node/binding/Release/node-v11-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/lib/node/binding/Release/node-v11-linux-arm" gyp ERR! cwd /home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy gyp ERR! node -v v0.10.29 gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp configure --fallback-to-build --module=/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/lib/node/binding/Release/node-v11-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/lib/node/binding/Release/node-v11-linux-arm' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17) node-pre-gyp ERR! stack at maybeClose (child_process.js:755:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:822:5) node-pre-gyp ERR! System Linux 4.4.38-v7+ node-pre-gyp ERR! command "node" "/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy node-pre-gyp ERR! node -v v0.10.29 node-pre-gyp ERR! node-pre-gyp -v v0.6.32 node-pre-gyp ERR! not ok Failed to execute 'node-gyp configure --fallback-to-build --module=/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/lib/node/binding/Release/node-v11-linux-arm/snowboy.node --module_name=snowboy --module_path=/home/pi/pibrain/P-Brain.ai-RasPi/node_modules/snowboy/lib/node/binding/Release/node-v11-linux-arm' (1) npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! snowboy@1.1.0 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the snowboy@1.1.0 install script. npm ERR! This is most likely a problem with the snowboy 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 their info via: npm ERR! npm owner ls snowboy npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.4.38-v7+ npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/pi/pibrain/P-Brain.ai-RasPi npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pi/pibrain/P-Brain.ai-RasPi/npm-debug.log npm ERR! not ok code 0

mobilars commented 7 years ago

Could it be that I have the wrong version of node?

mobilars commented 7 years ago

I upgraded (from legacy node) to node v7.4.0. It seems to get a bit further.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN P-Brain.ai@0.5.3 license should be a valid SPDX license expression -ne Done Installing P-Brain client modules... npm WARN lifecycle snowboy@1.1.0~preinstall: cannot run in wd %s %s (wd=%s) snowboy@1.1.0 npm install node-pre-gyp /opt/P-Brain.ai-client/node_modules/.staging/snowboy-6732e5e7

snowboy@1.1.0 install /opt/P-Brain.ai-client/node_modules/snowboy node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://snowboy-release-node.s3-us-west-2.amazonaws.com/snowboy/v1.1.0/Release/snowboy-v1.1.0-node-v51-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for snowboy@1.1.0 and node@7.4.0 (node-v51 ABI) (falling back to source compile with node-gyp) module.js:472 throw err; ^

Error: Cannot find module 'nan' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at [eval]:1:1 at ContextifyScript.Script.runInThisContext (vm.js:26:33) at Object.exports.runInThisContext (vm.js:79:17) at Object. ([eval]-wrapper:6:22) at Module._compile (module.js:571:32) at Immediate. (bootstrap_node.js:383:29) gyp: Call to 'node -e "require('nan')"' returned exit status 1 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/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 4.4.38-v7+ gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/P-Brain.ai-client/node_modules/snowboy/lib/node/binding/Release/node-v51-linux-arm/snowboy.node" "--module_name=snowboy" "--module_path=/opt/P-Brain.ai-client/node_modules/snowboy/lib/node/binding/Release/node-v51-linux-arm" gyp ERR! cwd /opt/P-Brain.ai-client/node_modules/snowboy gyp ERR! node -v v7.4.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/P-Brain.ai-client/node_modules/snowboy/lib/node/binding/Release/node-v51-linux-arm/snowboy.node --module_name=snowboy --module_path=/opt/P-Brain.ai-client/node_modules/snowboy/lib/node/binding/Release/node-v51-linux-arm' (1) node-pre-gyp ERR! stack at ChildProcess. (/opt/P-Brain.ai-client/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:885:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) node-pre-gyp ERR! System Linux 4.4.38-v7+ node-pre-gyp ERR! command "/usr/bin/nodejs" "/opt/P-Brain.ai-client/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /opt/P-Brain.ai-client/node_modules/snowboy node-pre-gyp ERR! node -v v7.4.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.32 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/P-Brain.ai-client/node_modules/snowboy/lib/node/binding/Release/node-v51-linux-arm/snowboy.node --module_name=snowboy --module_path=/opt/P-Brain.ai-client/node_modules/snowboy/lib/node/binding/Release/node-v51-linux-arm' (1) P-Brain.ai-Client@0.5.3 /opt/P-Brain.ai-client ├── co@4.6.0 ├── co-request@1.0.0 ├── node-record-lpcm16@0.2.0 ├─┬ play-sound@1.1.1 │ └─┬ find-exec@0.0.8 │ └── sync-exec@0.6.2 ├── q@1.4.1 ├─┬ request@2.79.0 │ ├── aws-sign2@0.6.0 │ ├── aws4@1.5.0 │ ├── caseless@0.11.0 │ ├─┬ combined-stream@1.0.5 │ │ └── delayed-stream@1.0.0 │ ├── extend@3.0.0 │ ├── forever-agent@0.6.1 │ ├─┬ form-data@2.1.2 │ │ └── asynckit@0.4.0 │ ├─┬ har-validator@2.0.6 │ │ ├─┬ chalk@1.1.3 │ │ │ ├── ansi-styles@2.2.1 │ │ │ ├── escape-string-regexp@1.0.5 │ │ │ ├─┬ has-ansi@2.0.0 │ │ │ │ └── ansi-regex@2.1.1 │ │ │ ├── strip-ansi@3.0.1 │ │ │ └── supports-color@2.0.0 │ │ ├─┬ commander@2.9.0 │ │ │ └── graceful-readlink@1.0.1 │ │ ├─┬ is-my-json-valid@2.15.0 │ │ │ ├── generate-function@2.0.0 │ │ │ ├─┬ generate-object-property@1.2.0 │ │ │ │ └── is-property@1.0.2 │ │ │ ├── jsonpointer@4.0.1 │ │ │ └── xtend@4.0.1 │ │ └─┬ pinkie-promise@2.0.1 │ │ └── pinkie@2.0.4 │ ├─┬ hawk@3.1.3 │ │ ├── boom@2.10.1 │ │ ├── cryptiles@2.0.5 │ │ ├── hoek@2.16.3 │ │ └── sntp@1.0.9 │ ├─┬ http-signature@1.1.1 │ │ ├── assert-plus@0.2.0 │ │ ├─┬ jsprim@1.3.1 │ │ │ ├── extsprintf@1.0.2 │ │ │ ├── json-schema@0.2.3 │ │ │ └── verror@1.3.6 │ │ └─┬ sshpk@1.10.2 │ │ ├── asn1@0.2.3 │ │ ├── assert-plus@1.0.0 │ │ ├── bcrypt-pbkdf@1.0.0 │ │ ├─┬ dashdash@1.14.1 │ │ │ └── assert-plus@1.0.0 │ │ ├── ecc-jsbn@0.1.1 │ │ ├─┬ getpass@0.1.6 │ │ │ └── assert-plus@1.0.0 │ │ ├── jodid25519@1.0.2 │ │ ├── jsbn@0.1.0 │ │ └── tweetnacl@0.14.5 │ ├── is-typedarray@1.0.0 │ ├── isstream@0.1.2 │ ├── json-stringify-safe@5.0.1 │ ├─┬ mime-types@2.1.14 │ │ └── mime-db@1.26.0 │ ├── oauth-sign@0.8.2 │ ├── qs@6.3.0 │ ├── stringstream@0.0.5 │ ├─┬ tough-cookie@2.3.2 │ │ └── punycode@1.4.1 │ ├── tunnel-agent@0.4.3 │ └── uuid@3.0.1 ├── say@0.11.0 └─┬ thunkify-wrap@1.0.4 └── enable@1.3.2

npm WARN P-Brain.ai-Client@0.5.3 No repository field. npm WARN P-Brain.ai-Client@0.5.3 license should be a valid SPDX license expression npm ERR! Linux 4.4.38-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v7.4.0 npm ERR! npm v4.0.5 npm ERR! code ELIFECYCLE

npm ERR! snowboy@1.1.0 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the snowboy@1.1.0 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 snowboy 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 snowboy npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls snowboy npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /opt/P-Brain.ai-client/npm-debug.log -ne Done

P-Brain.ai-Client@0.5.3 start /opt/P-Brain.ai-client node client.js

module.js:472 throw err; ^

Error: Cannot find module 'snowboy' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/opt/P-Brain.ai-client/client.js:4:15) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3)

npm ERR! Linux 4.4.38-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v7.4.0 npm ERR! npm v4.0.5 npm ERR! code ELIFECYCLE npm ERR! P-Brain.ai-Client@0.5.3 start: node client.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the P-Brain.ai-Client@0.5.3 start script 'node client.js'. 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 P-Brain.ai-Client package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node client.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs P-Brain.ai-Client npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls P-Brain.ai-Client npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /opt/P-Brain.ai-client/npm-debug.log pi@raspberrypi:~/pibrain $

And then:

pi@raspberrypi:~/node $ cat /opt/P-Brain.ai-client/npm-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ] 2 info using npm@4.0.5 3 info using node@v7.4.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle P-Brain.ai-Client@0.5.3~prestart: P-Brain.ai-Client@0.5.3 6 silly lifecycle P-Brain.ai-Client@0.5.3~prestart: no script for prestart, continuing 7 info lifecycle P-Brain.ai-Client@0.5.3~start: P-Brain.ai-Client@0.5.3 8 verbose lifecycle P-Brain.ai-Client@0.5.3~start: unsafe-perm in lifecycle true 9 verbose lifecycle P-Brain.ai-Client@0.5.3~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/opt/P-Brain.ai-client/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 10 verbose lifecycle P-Brain.ai-Client@0.5.3~start: CWD: /opt/P-Brain.ai-client 11 silly lifecycle P-Brain.ai-Client@0.5.3~start: Args: [ '-c', 'node client.js' ] 12 silly lifecycle P-Brain.ai-Client@0.5.3~start: Returned: code: 1 signal: null 13 info lifecycle P-Brain.ai-Client@0.5.3~start: Failed to exec start script 14 verbose stack Error: P-Brain.ai-Client@0.5.3 start: node client.js 14 verbose stack Exit status 1 14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at EventEmitter.emit (events.js:191:7) 14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at ChildProcess.emit (events.js:191:7) 14 verbose stack at maybeClose (internal/child_process.js:885:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 15 verbose pkgid P-Brain.ai-Client@0.5.3 16 verbose cwd /opt/P-Brain.ai-client 17 error Linux 4.4.38-v7+ 18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start" 19 error node v7.4.0 20 error npm v4.0.5 21 error code ELIFECYCLE 22 error P-Brain.ai-Client@0.5.3 start: node client.js 22 error Exit status 1 23 error Failed at the P-Brain.ai-Client@0.5.3 start script 'node client.js'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the P-Brain.ai-Client package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error node client.js 23 error You can get information on how to open an issue for this project with: 23 error npm bugs P-Brain.ai-Client 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls P-Brain.ai-Client 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

patrickjquinn commented 7 years ago

Ah ha! I removed the node install portion of the script so you're using an old version of node!

Try running

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

sudo apt-get install -y nodejs

And then running the installer again :) good catch!

patrickjquinn commented 7 years ago

Needs to be node 6 :) also remove node_modules before you npm install

patrickjquinn commented 7 years ago

I've added the correct nodejs version to the provision script, feel free to installed via the automatic installer :)

mobilars commented 7 years ago

Re-ran it. After running your script, I had to install the following modules manually: node-record-lpcm16, request, snowball, thunkify-wrap, co, q. After that it seems to run (havent got the audio to work yet, but that's probably just my setup).

patrickjquinn commented 7 years ago

That shouldn't happen, the modules should be installed during script execution, I need to test this properly on my Raspberry Pi (which I haven't really due to not having a USB microphone...my bad)

mobilars commented 7 years ago

Configuration of a usb mike together with an audio output on Raspberry pi, which ends up on different sound cards, is also a bit tricky...

  1. jan. 2017 18:47 skrev "patrickjquinn" notifications@github.com:

That shouldn't happen, the modules should be installed during script execution, I need to test this properly on my Raspberry Pi (which I haven't really due to not having a USB microphone...my bad)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/patrickjquinn/P-Brain.ai-RasPi/issues/3#issuecomment-275931600, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQrKJoKYMn5V8ranFxN4Kz8N34VLlRzks5rXNB7gaJpZM4Lwpk8 .

patrickjquinn commented 7 years ago

Once I get my hands on a USB 🎤 I'll add in auto configuration which uses the first available device as the default :)