tiny-care-terminal: Error at launch of the program
Hi i have an error when i launch the program
This is my informations :
Node Version: 4.2.6
tiny-core-terminal version: 1.1.1
Shell: zsh
Terminal Program: D'ont now the default for ubuntu 16.04..
Operating System: Linux, ubuntu
And my error:
` ~ tiny-care-terminal
Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:441:9)
at process._tickCallback (node.js:355:17)
at Function.Module.runMain (module.js:444:11)
at startup (node.js:136:18)
at node.js:966:3
events.js:141
throw er; // Unhandled ‘error’ event
^
Error: spawn sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:441:9) at process._tickCallback (node.js:355:17)`
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 36 (2 by maintainers)
I had the same problem. I solved it by replacing
'sh ' + __dirname + '/standup-helper.sh'with
__dirname + '/standup-helper.sh'in care.js lines 119 and 127
Hope this helps
same thing for me, basically the same configuration, but using
bash@jihelhere thank you so much! After doing some research, I was able to fix the issue by adjusting the permissions on the standup-helper.sh. For context, I ran the below command to fix the permissions:
sudo chmod -R a+rwx /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.shSo just to confirm for any one with the same issues I was having: I was able to resolve them by following instructions provided by @jihelhere and then fixing permissions on the standup-helper.sh script.
@germyjen Check the changes you made in the
care.jsfile.It looks like you are getting the ENOENT error (not a file) because it is trying to find:
/usr/local/var/nodenv/versions/4.7.0/lib/node_modules/tiny-care-terminal/standup-helper.sh~/CodeNote the~/Codeat the end of the file name. It should end with juststandup-helper.sh.@charlesdarnay the previous error meant that
sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.shis not a file (ENOENT) which is true, because it’s a command made of a program (sh) and a file name.My understanding of the new error (EACCESS) is that you do not have permission to run /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh