hharnisc / hypercwd

Opens new tabs with the same directory as the current tab in Hyper
MIT License
384 stars 39 forks source link

Errors in console when used with hyper 2.1.1 #36

Closed ignatiusreza closed 6 years ago

ignatiusreza commented 6 years ago
Error: spawn /bin/sh EMFILE
    at exports._errnoException (util.js:1050)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193)
    at onErrorNT (internal/child_process.js:367)
    at _combinedTickCallback (internal/process/next_tick.js:80)
    at process._tickCallback (internal/process/next_tick.js:104)
exec @ /home/craze/.hyper_plugins/node_modules/hypercwd/index.js:32
exithandler @ child_process.js:224
errorhandler @ child_process.js:236
emitOne @ events.js:96
emit @ events.js:191
ChildProcess._handle.onexit @ internal/child_process.js:213
onErrorNT @ internal/child_process.js:367
_combinedTickCallback @ internal/process/next_tick.js:80
_tickCallback @ internal/process/next_tick.js:104
rdstach commented 6 years ago

Try this :

cd ~/.hyper_plugins
rm -r node_modules package-lock.json
npm i --no-shrinkwrap

I am on Hyper 2.1.1 and it has been working just fine since then. I think this was an issue with NPM v5 according to #20

ignatiusreza commented 6 years ago

thanks @stach! that does seems to do the trick :+1: