Comments (36)
same thing for me, basically the same configuration, but using bash
from tiny-care-terminal.
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
from tiny-care-terminal.
@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.sh
So 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.
from tiny-care-terminal.
@charlesdarnay the previous error meant that
sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh
is 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
from tiny-care-terminal.
@germyjen Check the changes you made in the care.js
file.
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~/Code
Note the ~/Code
at the end of the file name. It should end with just standup-helper.sh
.
from tiny-care-terminal.
What happens if you run the standup-helper.sh
manually. You have the path to the file in your error message.
Try run: sh standup-helper.sh /path/to/git/repo
from tiny-care-terminal.
Nothing, no message.. The script during 5/6 sec and stop without error message
from tiny-care-terminal.
Are you able to run: git-standup -d /path/to/git/repo
. Note the -d
flag.
If this doesn't work, you need to install it with npm install -g git-standup
.
from tiny-care-terminal.
I can do this command without problem
from tiny-care-terminal.
Sorry, that's as far as I can help.
from tiny-care-terminal.
No problem, thanks you
from tiny-care-terminal.
You should always install it with npm install -g git-standup
, to be on the safe side
from tiny-care-terminal.
Yes i have do that and re do now but alwas the error
from tiny-care-terminal.
Can you return the output of these two commands:
which git-standup
npm bin -g
It is maybe a problem with a path somewhere.
from tiny-care-terminal.
which git-standup: /usr/local/bin/git-standup
npm bin -g: /usr/local/bin
from tiny-care-terminal.
I have the exact same issue with the same setup.
from tiny-care-terminal.
Same issue for me with the same error
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:442:9)
at process._tickCallback (node.js:356:17)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:139:18)
at node.js:968: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:442:9)
at process._tickCallback (node.js:356:17)
OS : Debian 8 Jessie
which git-standup /usr/local/bin/git-standup
npm bin -g /usr/local/bin
node --version v4.4.5
shell bash
from tiny-care-terminal.
Issue for me too
Error: spawn sh 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:442:9)
at process._tickCallback (node.js:356:17)
at Function.Module.runMain (module.js:443:11)
at startup (node.js:139:18)
at node.js:968:3
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn sh 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:442:9)
at process._tickCallback (node.js:356:17)
which git-standup \AppData\Roaming\npm\git-standup
npm bin -g \AppData\Roaming\npm
node --version v4.4.3
shell zsh
from tiny-care-terminal.
@jihelhere i have test your solution but change nothing for me
from tiny-care-terminal.
You should not get the exact same error message, right ?
from tiny-care-terminal.
I'v say i haven't not any one message, no good message, go bad message. Program execution betwen 5 and 8 sec and program exit.
from tiny-care-terminal.
@jihelhere For me after making your change, I get a new error:
Error: spawn EACCES
at exports._errnoException (util.js:870:11)
at ChildProcess.spawn (internal/child_process.js:298:11)
at exports.spawn (child_process.js:362:9)
at doTheCodes (/usr/local/lib/node_modules/tiny-care-terminal/care.js:119:15)
at tick (/usr/local/lib/node_modules/tiny-care-terminal/care.js:49:3)
at Object.<anonymous> (/usr/local/lib/node_modules/tiny-care-terminal/care.js:43:1)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
The error I was getting previously was:
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)
from tiny-care-terminal.
@charlesdarnay with you solution i have this error:
`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)
`
from tiny-care-terminal.
@PrincesseLulu Did you first modify care.js lines 119 and 127 as recommended by @jihelhere ?
from tiny-care-terminal.
@charlesdarnay Yes..
from tiny-care-terminal.
@PrincesseLulu Because that is the exact error I was getting before I applied his changes. It is unable to find the referenced file.
It looks like it is still trying to find
sh /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh
Which will never work as sh is not a valid part of the file name.
from tiny-care-terminal.
It's possible i have do a pull request i retry
from tiny-care-terminal.
@charlesdarnay okay no my error is
/usr/local/lib/node_modules/tiny-care-terminal/care.js:127
var week = spawn(__dirname + '/standup-helper.sh', config.repos], {shell:true});
^^^^^
SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
from tiny-care-terminal.
@PrincesseLulu It looks like you might have removed too much from line 127.
Mine looks like:
var week = spawn(__dirname + '/standup-helper.sh', ['-m ' + config.depth + ' -d 7', config.repos], {shell:true});
And it looks like yours is:
var week = spawn(__dirname + '/standup-helper.sh', config.repos], {shell:true});
But it also looks like the repo has been updated a bit since I last installed it.
from tiny-care-terminal.
@charlesdarnay Thank the program is run !
I do a pull request for fix it in 2/3 days ;)
from tiny-care-terminal.
I ran into the same issue and fixed it following @jihelhere and @charlesdarnay instructions (thanks!).
I'm using oh-my-zsh on macOS 10.12.3.
from tiny-care-terminal.
I tried following @jihelhere and @charlesdarnay 's instructions, and am still seeing an error after chmoding the file:
used: sudo chmod -R a+rwx /usr/local/var/nodenv/versions/4.7.0/lib/node_modules/tiny-care-terminal/standup-helper.sh
now receive:
Error: spawn /usr/local/var/nodenv/versions/4.7.0/lib/node_modules/tiny-care-terminal/standup-helper.sh~/Code ENOENT at exports._errnoException (util.js:907:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:189:32) at onErrorNT (internal/child_process.js:355:16) at nextTickCallbackWith2Args (node.js:458:9) at process._tickCallback (node.js:372:17) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18) at node.js:990:3
I'm using zsh on Mac OSX with npm and nodenv
from tiny-care-terminal.
You're right, I fixed the problem :) thank you
from tiny-care-terminal.
As of version 1.2.0
there's a new way to use the terminal that doesn't involve the bash script, that should fix your problem. To use that, set the TTC_GITBOT
environment variable to gitlog
. This will become the default way in the future, I'm just giving it a bit of time in the wild before switching to it
from tiny-care-terminal.
@jihelhere
thank you nice comment.
work well~
summary:
- open file : /usr/local/lib/node_modules/tiny-care-terminal/care.js
- replace text
as is : 'sh ' + __dirname + '/standup-helper.sh'
to be : __dirname + '/standup-helper.sh' - sudo chmod 755 /usr/local/lib/node_modules/tiny-care-terminal/standup-helper.sh
from tiny-care-terminal.
since 1.2.0:
- linux/mac:
export TTC_GITBOT=gitlog
- Windows
set TTC_GITBOT=gitlog
from tiny-care-terminal.
Related Issues (20)
- Doesn't draw correctly in cool-retro-term when in a pane using GNU Screen or Byobu
- Issues installing tiny-care-terminal HOT 2
- Select a random AnsiArt with every new message
- Parrot box breaks for large texts HOT 1
- Longer tweets are getting cut off, links not separated? HOT 8
- Only show user's own commits? HOT 2
- "RangeError: Invalid count value" since updating node HOT 6
- Started crashing today HOT 12
- App Crashes On Start HOT 4
- Is there a way to disable twitter module? HOT 1
- internal/modules/cjs/loader.js:583 HOT 4
- Installation fails because it needs python2.x instead of python 3.x HOT 2
- Installation fails HOT 3
- Error with Twitter bot HOT 6
- event-stream dependency vulnerability HOT 1
- Comma seperated list of Repos not working HOT 3
- TypeError: Cannot read property 'replace' of null error HOT 3
- Install failed on `node-gyp rebuild` HOT 13
- ReferenceError: gitUsername is not defined HOT 8
- TypeError: content.replace is not a function HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiny-care-terminal.