Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error update plugins (Deprecation warning) #3722

Closed
2 tasks done
VincentLanglet opened this issue Jun 5, 2019 · 12 comments
Closed
2 tasks done

Error update plugins (Deprecation warning) #3722

VincentLanglet opened this issue Jun 5, 2019 · 12 comments

Comments

@VincentLanglet
Copy link

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Mojave 10.14.4
  • Hyper.app version: Just installed
  • Node version: 12.4.0
  • Npm version: 6.9.0
  • Yarn version: 1.16.0

Issue

Everytime i launch the terminal I get a message
Deprecationwarning Buffer() is deprecated due to security and usability issue

I look for Error update plugins in the issues but didn't find one about the deprecation warning message.

@VincentLanglet
Copy link
Author

Duplicate of #3595

@IgorGanapolsky
Copy link

This issue is still occurring now in Hyper 3.0.2 (stable)

@andreaspabst
Copy link

Still there

@calexandre
Copy link

Happening to me aswell. Running 3.0.2 (stable)

@VincentLanglet
Copy link
Author

Since the issue #3595 is close, I reopen this one.

@marjorg
Copy link

marjorg commented Jan 9, 2020

Had the same issue but fixed it by doing this:

  1. Remove all plugins from .hyper.js and do a full reload
  2. Add the plugins back and reload again

@danacr
Copy link

danacr commented Feb 25, 2020

Adding proxies for yarn in my .zshrc solved the issue for me:

# yarn config for hyper
yarn config set proxy $http_proxy --silent
yarn config set https-proxy $http_proxy --silent
yarn config set no-proxy $no_proxy --silent 
yarn config set strict-ssl false --silent 

@drdogbot7
Copy link

For me this was an issue with Yarn trying to use a proxy for some reason (yarnpkg/yarn#4890). I don't use yarn so I didn't know it wasn't working. You can try running the 'yarn' command manually in your '.hyper_plugins' folder to see if that's the issue. Yarn gave me more helpful error messages than Hyper did.

e.g.

cd ~/.hyper_plugins
yarn

You can see if yarn has a proxy set by running:

yarn config list

These commands eventually fixed it for me:

yarn config delete https-proxy
yarn config delete proxy
yarn config set no-proxy true

@aarjaneiro
Copy link

@danacr 's suggestion worked for me, I presume then (as I also tried @drdogbot7 's solution) that strict-ssl = false might have been the source of my flag.

@graham73may
Copy link

graham73may commented Jul 14, 2020

Fresh install of macOS, Hyper 3.0.2 stable installed and this issue is occurring for me as well.

hyper -v shows a longer version of the notification message.

[Notification] Error updating plugins.: (node:88731) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

@marjorg's suggestion didn't work for me.

Don't have yarn installed so the other suggestions just cause more errors.


Update - reluctantly installed yarn, ran the commands in @drdogbot7's comment and this has fixed the issue for me.

I didn't plan on using yarn so I've removed it now and the error has not returned.

brew uninstall yarn

If you have a pretty clean set of homebrew install you may also be able to uninstall yarn's dependencies.

Find the dependencies:

brew deps yarn

Uninstall the ones you don't need, for me this was:

brew uninstall node
brew uninstall icu4c

@caelinsutch
Copy link

@drdogbot7's suggestion worked for me, but I had to install yarn from brew. For some reason, installing it with npm: npm i -g yarn didn't work :( Either way, glad I figured it out and thanks to everyone from this thread!

Commands that worked for me:

brew install yarn
cd ~/.hyper_plugins
yarn
yarn config delete https-proxy
yarn config delete proxy
yarn config set no-proxy true

@schulzf
Copy link

schulzf commented Mar 27, 2021

I had this issue (twice - once for my mac mini m1 and once for my macbook air m1)
For me it was a permissions problem. I noticed that because every time I had to do a npm install / yarn add I got EACCES permission denied, I had to sudo everything - turns out that this was also messing up the ability of hyper to install plugins as well.

try doing this:

chown -R yourusername /users/yourusername

that solved the above issues I was having on my m1 mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests