hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Plugins not installing

Open bnb opened this issue 10 years ago • 69 comments

Plugins won't install for me at this point.

Console log from fresh open:

(re)loading renderer plugins
Error: Cannot find module '/Users/tierney/.hyperterm_plugins/node_modules/hyperpower'
    at Module._resolveFilename (module.js:438:15)
    at Function.Module._resolveFilename (/Applications/HyperTerm.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:10828
    at Array.map (native)
    at P (file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:10779)
    at Object.<anonymous> (file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:11881)
    at __webpack_require__ (file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:119)
[Notification] Plugin load error: "hyperpower" failed to load in the renderer process. Check Developer Tools for details.
total init time 173.95
Unimplemented DEC Private Mode: 1034

bnb avatar Jul 17 '16 04:07 bnb

The new version got released a few hours ago. Please try that one.

marcbachmann avatar Jul 17 '16 23:07 marcbachmann

Same here, just installed it Version 0.6.0 (0.6.0):

bundle.js:1 Error: Cannot find module '/Users/najewicc/.hyperterm_plugins/node_modules/hyperterm-snazzy'
    at Module._resolveFilename (module.js:438:15)
    at Function.Module._resolveFilename (/Applications/HyperTerm.app/Contents/Resources/electron.asar/common/reset-search-paths.js:47:12)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:10828
    at Array.map (native)
    at P (file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:10779)
    at Object.<anonymous> (file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:11881)
    at __webpack_require__ (file:///Applications/HyperTerm.app/Contents/Resources/app/build/dist/bundle.js:1:119)(anonymous function) @ bundle.js:1
bundle.js:5 [Notification] Plugin load error: "hyperterm-snazzy" failed to load in the renderer process. Check Developer Tools for details
ROSELCDV0001SSU% cat ~/.hyperterm_plugins/package.json 
{
  "name": "hyperterm-plugins",
  "description": "Auto-generated from `~/.hyperterm.js`!",
  "private": true,
  "version": "0.0.1",
  "repository": "zeit/hyperterm",
  "license": "MIT",
  "homepage": "https://hyperterm.org",
  "dependencies": {}
}

I deleted ~/.hyperterm-plugins and restarted a few times and things started working, FWIW.

chiefy avatar Jul 18 '16 00:07 chiefy

The update only gets triggered on json config change and every 5 hours. Maybe we can save the notifications somewhere in a log. Then you'll see when something went wrong.

marcbachmann avatar Jul 18 '16 06:07 marcbachmann

When I opened this morning, it didn't work - opened again a bit later, the same. Opened a third time, and my plugins suddenly loaded. So, working it seems.

bnb avatar Jul 18 '16 12:07 bnb

@marcbachmann , I guess that's why I am confused - I updated my ~/.hyperterm.js, added some plugins to the list, saved, and the package.json had 0 dependencies. Seems like a bug ❓

chiefy avatar Jul 18 '16 12:07 chiefy

I'm having an even more annoying problem:

  1. I do a fresh install of Hyperterm. Everything works.
  2. I edit the config file to add the hyperpower plugin, and get the notification saying plugins are being updated.
  3. I wait for a really long time and nothing happens.
  4. I trigger a reload and get the error above.
  5. If I trigger a full-reload or close and open the app, it freezer and stop responding. What's worse, the shell stops working even in Terminal. This is only fixed by a system restart.

If I go into the .hyperpower_plugins folder and npm i -S hyperpower, it actually starts working. So it seems like a problem with permissions. That said, the app still doesn't respond.


Update:

I had this in my bash profile:

zsh

this was pointing to /user/local/bin/zsh

Instead, I just pointed the shell in the config to /bin/zsh which is the zsh that comes pre-installed on the mac. That solved everything. Not sure exactly what the problem was. But, it's fixed for me now.

nmn avatar Aug 02 '16 02:08 nmn

@nmn Had to re-install because I had switched to zsh. Seems we need zsh setup and troubleshot instructions.

bnb avatar Aug 06 '16 00:08 bnb

I'm using zsh and get into this too, package.json is not updated.

In hyperterm.js, set shell to '/bin/zsh' solve it ,thanks @nmn !

linonetwo avatar Sep 25 '16 07:09 linonetwo

I'm using Hyper 1.0.0 (64-bit) on Windows 10. I'm having issues getting plugins to install, too.

Earlier, I was able to get my packages to install by deleting the node_modules folder and the package.json file and relaunching Hyper. Today, I tried to install a new plugin by just adding it to the plugins array in the configuration file, but it didn't work. I tried my trick from last time, but that didn't work either. Instead, I used Hyper to run npm install in the .hyper_plugins folder, relaunched Hyper, and the plugins work just fine.

awayken avatar Dec 12 '16 18:12 awayken

Ran in to this when I modified shell prior to installing plugins. Plugins installed normally when launching Hyper with the default shell path, then I was free to change the shell path back.

davidcsz avatar Jan 05 '17 02:01 davidcsz

Can confirm that this is happening with windows 10, hyper 1.1.0

lednhatkhanh avatar Jan 15 '17 09:01 lednhatkhanh

Getting this as well. Windows 10, hyper 1.1.0, using powershell as the default shell.

Nothing getting written to package.json when enabled from my ~/.hyper.js file and nothing in the node_modules folder.

After wiping package.json and node_modules and enabling a plugin as suggested, the files get recreated and it started working, then stopped.

jmreicha avatar Jan 20 '17 19:01 jmreicha

I'm having this problem too. Deleting the .hyper_plugins folder doesn't fix it.

Update with more info:

  • Version 1.2.1
  • macOS 10.12.3

thexavismith avatar Feb 16 '17 04:02 thexavismith

Still happening on Windows 10, hyper 1.2.1

edtorba avatar Feb 18 '17 18:02 edtorba

happening here as well.. Tried using bash.exe and cmd.exe. It tells me to check the logs but they don't exist

ivansf avatar Feb 18 '17 23:02 ivansf

+1

philkunz avatar Feb 19 '17 03:02 philkunz

After adding plugin to plugins array, I've noticed that they do get added to package.json, but not getting installed.

edtorba avatar Feb 19 '17 12:02 edtorba

+1

ajinkyai avatar Feb 21 '17 02:02 ajinkyai

I'm experiencing this issue as well...

macOS 10.12 hyper 1.2.1

gonzalobustos avatar Feb 21 '17 16:02 gonzalobustos

macOS 10.12 hyper 1.2.1

Same problem

brunocascio avatar Feb 21 '17 17:02 brunocascio