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

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. #6577

Closed
arunabhdas opened this issue Oct 24, 2018 · 2 comments
Assignees
Labels

Comments

@arunabhdas
Copy link

==> yarn --version
0.27.5

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce.

Steps :

  1. Run the following command
    ==> yarn global add generator-hipster

The error below is shown and jhipster is not installed

yarn global v0.27.5
(node:47419) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/generator-hipster: Not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/coder/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

What is the expected behavior?

jhipster should be installed

Please mention your node.js, yarn and operating system version.
==> node --version
v11.0.0

==> yarn --version
0.27.5

macOS Mojave version 10.14

@ghost ghost assigned kaylie-alexa Oct 24, 2018
@ghost ghost added the triaged label Oct 24, 2018
@Gudahtt
Copy link
Contributor

Gudahtt commented Oct 24, 2018

The Buffer deprecation warning was tracked under #5477, and was fixed in Yarn v1.10.0.

@Gudahtt
Copy link
Contributor

Gudahtt commented Oct 25, 2018

Oh, after taking a closer look at that error message, it looks like the error you encountered is due to a misspelling. The Buffer warning was just a warning, and wasn't related to the error.

The package generator-hipster does not exist, so it failed to install. The package you meant to install is probably generator-jhipster.

Feel free to join the Discord chat to ask for help if you're still having trouble.

@Gudahtt Gudahtt closed this as completed Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants