Installed on a fresh raspbian on rpi3 following the install procedures with latest npm, pimatic, git.
On install get the following warns:
pi@rpi3:~ $ sudo npm install pimatic
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json’
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json’
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
When try to start i get:
pi@rpi3:~ $ sudo node_modules/pimatic/pimatic.js
/home/pi/node_modules/pimatic/coffee-cache.js:174
require.extensions.defineGetter(’.coffee’, function(){
TypeError: require.extensions.defineGetter is not a function
at Object.<anonymous> (/home/pi/node_modules/pimatic/coffee-cache.js:174:20)
at Module._compile (module.js:641:30)
at Object.Module._extensions…js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/pi/node_modules/pimatic/pimatic.js:3:1)
at Module._compile (module.js:641:30)
at Object.Module._extensions…js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Function.Module.runMain (module.js:682:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:613:3
Trying with other command:
pi@rpi3:~ $ sudo service pimatic start
Job for pimatic.service failed because the control process exited with error code.
See “systemctl status pimatic.service” and “journalctl -xe” for details.
pi@rpi3:~ $ systemctl status pimatic.service
● pimatic.service - LSB: pimatic service
Loaded: loaded (/etc/init.d/pimatic; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2017-11-25 21:15:04 EET; 1min 19s ago
Docs: man:systemd-sysv-generator(8)
Process: 3720 ExecStart=/etc/init.d/pimatic start (code=exited, status=1/FAILURE)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Module.load (module.js:560:32)
Nov 25 21:15:04 rpi3 pimatic[3720]: at tryModuleLoad (module.js:503:12)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Function.Module._load (module.js:495:3)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Function.Module.runMain (module.js:682:10)
Nov 25 21:15:04 rpi3 pimatic[3720]: at startup (bootstrap_node.js:191:16)
Nov 25 21:15:04 rpi3 pimatic[3720]: at bootstrap_node.js:613:3
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Control process exited, code=exited status=1
Nov 25 21:15:04 rpi3 systemd[1]: Failed to start LSB: pimatic service.
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Unit entered failed state.
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Failed with result ‘exit-code’.
pi@rpi3:~ $ journalctl -xe
Nov 25 21:15:04 rpi3 pimatic[3720]: at Module._compile (module.js:641:30)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Object.Module._extensions…js (module.js:652:10)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Module.load (module.js:560:32)
Nov 25 21:15:04 rpi3 pimatic[3720]: at tryModuleLoad (module.js:503:12)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Function.Module._load (module.js:495:3)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Function.Module.runMain (module.js:682:10)
Nov 25 21:15:04 rpi3 pimatic[3720]: at startup (bootstrap_node.js:191:16)
Nov 25 21:15:04 rpi3 pimatic[3720]: at bootstrap_node.js:613:3
Nov 25 21:15:04 rpi3 sudo[3692]: pam_unix(sudo:session): session closed for user root
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Control process exited, code=exited status=1
Nov 25 21:15:04 rpi3 systemd[1]: Failed to start LSB: pimatic service.
– Subject: Unit pimatic.service has failed
– Defined-By: systemd
– Support: https://www.debian.org/support
– Unit pimatic.service has failed.
– The result is failed.
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Unit entered failed state.
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Failed with result ‘exit-code’.
Nov 25 21:17:01 rpi3 CRON[3740]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 25 21:17:01 rpi3 CRON[3744]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 25 21:17:01 rpi3 CRON[3740]: pam_unix(cron:session): session closed for user root
lines 2823-2845/2845 (END)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Module._compile (module.js:641:30)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Object.Module._extensions…js (module.js:652:10)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Module.load (module.js:560:32)
Nov 25 21:15:04 rpi3 pimatic[3720]: at tryModuleLoad (module.js:503:12)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Function.Module._load (module.js:495:3)
Nov 25 21:15:04 rpi3 pimatic[3720]: at Function.Module.runMain (module.js:682:10)
Nov 25 21:15:04 rpi3 pimatic[3720]: at startup (bootstrap_node.js:191:16)
Nov 25 21:15:04 rpi3 pimatic[3720]: at bootstrap_node.js:613:3
Nov 25 21:15:04 rpi3 sudo[3692]: pam_unix(sudo:session): session closed for user root
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Control process exited, code=exited status=1
Nov 25 21:15:04 rpi3 systemd[1]: Failed to start LSB: pimatic service.
– Subject: Unit pimatic.service has failed
– Defined-By: systemd
– Support: https://www.debian.org/support
– Unit pimatic.service has failed.
– The result is failed.
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Unit entered failed state.
Nov 25 21:15:04 rpi3 systemd[1]: pimatic.service: Failed with result ‘exit-code’.
Nov 25 21:17:01 rpi3 CRON[3740]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 25 21:17:01 rpi3 CRON[3744]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Nov 25 21:17:01 rpi3 CRON[3740]: pam_unix(cron:session): session closed for user root*
I have nothing configured in the config.json, but the admin passwd.
Anybody has an ideea what’s wrong?