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

Install error #558

Closed
janek515 opened this issue Sep 3, 2022 · 5 comments
Closed

Install error #558

janek515 opened this issue Sep 3, 2022 · 5 comments
Labels

Comments

@janek515
Copy link

janek515 commented Sep 3, 2022

Environment details

  • OS: Windows 11
  • OS version: 22622.575
  • node-pty version: 0.10.1

Issue description

When installing (using yarn) a build error appears

# This file contains the result of Yarn building a package (node-pty@npm:0.10.1)
# Script name: install

�[31m�[1mUsage Error�[22m�[39m: Couldn't find a script name "node-gyp" in the top-level (used by node-pty@npm:0.10.1). This typically happens because some package depends on "node-gyp" to build itself, but didn't list it in their dependencies. To fix that, please run "yarn add node-gyp" into your top-level workspace. You also can open an issue on the repository of the specified package to suggest them to use an optional peer dependency.

�[1m$ �[22myarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] <scriptName> ...

Running yarn add node-gyp fixes the problem

@UPL123
Copy link

UPL123 commented Sep 8, 2022

I think you need to install node-gyp. You can install it using

yarn add node-gyp

@daniel-brenot
Copy link
Contributor

Can we close this? The answer was given.

@janek515
Copy link
Author

The point is you shouldn't need to install it manually

@daniel-brenot
Copy link
Contributor

The point is you shouldn't need to install it manually

Then this most likeley should have node-pty added to the peer dependencies.

@Tyriar
Copy link
Member

Tyriar commented Nov 30, 2022

This is already called out in the readme that you need to install some build tools on Windows: https://github.com/microsoft/node-pty#windows

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

4 participants