node-pty icon indicating copy to clipboard operation
node-pty copied to clipboard

Install error

Open janek515 opened this issue 3 years ago • 1 comments

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

janek515 avatar Sep 03 '22 12:09 janek515

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

yarn add node-gyp

UPL123 avatar Sep 08 '22 22:09 UPL123

Can we close this? The answer was given.

daniel-brenot avatar Nov 14 '22 16:11 daniel-brenot

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

janek515 avatar Nov 14 '22 16:11 janek515

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

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

daniel-brenot avatar Nov 14 '22 16:11 daniel-brenot

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

Tyriar avatar Nov 30 '22 16:11 Tyriar