Hyper: Cannot install plugins

Created on 4 Jul 2017  Â·  8Comments  Â·  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: macOS Sierra 10.12.5
  • Hyper.app version: 1.3.3
  • Link of a Gist with the contents of your .hyper.js: link
  • Relevant information from devtools _(CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere)_: See screenshot
  • The issue is reproducible in vanilla Hyper.app: N/A

Issue

NB: I have seen other issues regarding plugin installations but not of this specific problem.

My Hyper is no longer installing plugins. I have tried deleting and re-downloading Hyper, removing my .hyper_plugins directrory, starting from a fresh .hyper.js config, all to no avail. Whenever I add plugins to my plugins array, I get the following errors for every plugin:

image

ls -a from .hyper_plugins:

drwxr-xr-x  2 cole  staff    68B  4 Jul 15:15 local
-rw-r--r--  1 cole  staff    76B  4 Jul 15:22 package-lock.json
-rw-r--r--  1 cole  staff   350B  4 Jul 15:22 package.json

Contents of package.json:

{
  "name": "hyper-plugins",
  "description": "Auto-generated from `~/.hyper.js`!",
  "private": true,
  "version": "0.0.1",
  "repository": "zeit/hyper",
  "license": "MIT",
  "homepage": "https://hyper.is",
  "dependencies": {
    "hypercwd": "latest",
    "hyperlinks": "latest",
    "hyperterm-paste": "latest",
    "hyper-space": "latest"
  }
}

Running npm i doesn't install any of the packages listed in dependencies. It seems to just exit the process successfully without installing anything.

Help!

Most helpful comment

Will be definitely resolved by #381

All 8 comments

Also getting this.

I think this may have something to do with the lockfile that was introduced with npm 5.

On npm i I get up to date:

➜  cd ~/.hyper_plugins
➜  ls -lFh
total 16
drwxr-xr-x   5 k  staff   170B  4 Jul 17:44 .
drwxr-xr-x+ 57 k  staff   1.9K  4 Jul 17:45 ..
drwxr-xr-x   2 k  staff    68B  9 Apr 21:47 local
-rw-r--r--   1 k  staff    76B  4 Jul 17:44 package-lock.json
-rw-r--r--   1 k  staff   271B  4 Jul 17:44 package.json
➜  cat package.json
{
  "name": "hyper-plugins",
  "description": "Auto-generated from `~/.hyper.js`!",
  "private": true,
  "version": "0.0.1",
  "repository": "zeit/hyper",
  "license": "MIT",
  "homepage": "https://hyper.is",
  "dependencies": {
    "hyperterm-atom-dark": "latest"
  }
}
➜  npm i
up to date in 0.442s

# Hyper still errors out.

After manually deleting the lockfile and re-running npm i, plugins seem to be working again.

➜  rm package-lock.json 
➜  npm i
npm notice created a lockfile as package-lock.json. You should commit this file.
added 1 package in 0.558s

# Now Hyper works

➜  ls -lFh
total 16
drwxr-xr-x   6 k  staff   204B  4 Jul 17:45 .
drwxr-xr-x+ 57 k  staff   1.9K  4 Jul 17:45 ..
drwxr-xr-x   2 k  staff    68B  9 Apr 21:47 local
drwxr-xr-x   3 k  staff   102B  4 Jul 17:45 node_modules
-rw-r--r--   1 k  staff   317B  4 Jul 17:45 package-lock.json
-rw-r--r--   1 k  staff   271B  4 Jul 17:45 package.json
➜  node -v
v8.1.3
➜  npm -v
5.0.3

I guess @wachunei came to a similar conclusion in https://github.com/zeit/hyper/issues/191#issuecomment-309854692.

And it appears that @ppot noticed that #1896 will fix it, when it gets released.

I guess until a new version with #1896 is released, we will just have to wait...

i also got this issue #1970 . as you said npm i did not install packages but by using yarn install it installed everything . the problems seems to be in the lock file.

I think it is not right to go into the folder and run yarn, this will generate its own lockfiles and will not be in compliance with hyper package manager.

According to the code npm is the package manager, so any attempt to fix this issue should be done using https://github.com/zeit/hyper/issues/191#issuecomment-309854692, until #1896 is included in a next release.

@wachunei your solution can be simplified a bit:

  • you don't need to remove the node_modules directory
  • maybe: the --no-shrinkwrap option didn't seem to do anything special for me (still doesn't fix the problem permanently)

Will be definitely resolved by #381

Thanks for the heads-up @chabou, and apologies if this issue was a duplicate and added too much noise. :)

No problem @colepeters. Thank you so much for your feedback.
More releases, less duplicates. That's our fault.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leo picture leo  Â·  3Comments

alejandrofloresm picture alejandrofloresm  Â·  3Comments

cooperpellaton picture cooperpellaton  Â·  3Comments

weabot picture weabot  Â·  3Comments

juicygoose picture juicygoose  Â·  3Comments