pty.js icon indicating copy to clipboard operation
pty.js copied to clipboard

Missing module in windows...

Open tracker1 opened this issue 10 years ago • 4 comments

gyp: deps\winpty\winpty.gyp not found (cwd: C:\Users\michaelr\AppData\Local\Temp\apm-install-dir-11487-1116-14ej5wl\node_modules\term2\node_modules\pty.js)
gypnpm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pty.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls pty.js
npm ERR! There is likely additional logging output above.

tracker1 avatar Sep 07 '14 19:09 tracker1

+1

soundyogi avatar Jan 21 '15 00:01 soundyogi

The problem is, that winpty is included as a submodule and it's source is NOT included in the release file (just open https://github.com/chjj/pty.js/releases/tag/v0.2.4). That's why node-gyp can't find the dependencies during installation.

You can do the following to install it globally, but unfortunately atom packages (which are you trying to install) don't look for global node modules...

git clone https://github.com/chjj/pty.js.git
git submodule update --init --recursive
cd pty.js
npm install -g

mrgrain avatar Feb 02 '15 02:02 mrgrain

+1

rentrop avatar Aug 26 '15 20:08 rentrop

+1

farhan687 avatar Jul 27 '16 08:07 farhan687