question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rebuild node-pty failed

See original GitHub issue

When I run command as follows in node-pty(win10 system), nothing wrong: “C:\Program Files\nodejs\node.exe” “C:\Users\admin\Desktop\Project\MyProject\node_modules\node-gyp\bin\node-gyp.js” “rebuild”, but electron-rebuild node-pty failed.

node: 8.11.2 node-gyp: 3.6.2 electron: 2.0.16 electron-rebuild:1.8.2 node-pty:0.8.0 VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.cpp\v4.0\v140 msvs_version=2015 python2.7

Error message: winpty-agent.vcxproj -> C:\Users\admin\Desktop\Project\MyProject\node_modules\node-pty\build\Release\winpty-agent.exe winpty-agent.vcxproj -> C:\Users\admin\Desktop\Project\MyProject\node_modules\node-pty\build\Release\winpty-agent.pdb (Full PDB) gyp ERR! build error gyp ERR! stack Error: msbuild failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\admin\Desktop\Project\MyProject\node_modules\node-gyp\lib\build.js:258:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Windows_NT 10.0.10586 gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\admin\Desktop\Project\MyProject\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–target=2.0.16” “–arch=x64” “–dist-url=https://atom.io/download/electron” “–build-from-source” gyp ERR! cwd C:\Users\admin\Desktop\Project\MyProject\node_modules\node-pty gyp ERR! node -v v8.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

Failed with exit code: 1 at SafeSubscriber._error (C:\Users\admin\Desktop\Project\MyProject\node_modules\spawn-rx\lib\src\index.js:277:84) at SafeSubscriber.__tryOrUnsub (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:242:16) at SafeSubscriber.error (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:201:26) at Subscriber._error (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:132:26) at Subscriber.error (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:106:18) at MapSubscriber.Subscriber._error (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:132:26) at MapSubscriber.Subscriber.error (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:106:18) at SafeSubscriber._next (C:\Users\admin\Desktop\Project\MyProject\node_modules\spawn-rx\lib\src\index.js:251:65) at SafeSubscriber.__tryOrSetError (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:251:16) at SafeSubscriber.next (C:\Users\admin\Desktop\Project\MyProject\node_modules\rxjs\Subscriber.js:191:27)

What happened?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
monicaxuncommented, Jan 23, 2019

@gaograce Did you resolve this issue? I have encountered it too.

0reactions
johndacostcommented, Dec 9, 2019

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

rebuild node-pty failed · Issue #269 · electron/rebuild - GitHub
When I run command as follows in node-pty(win10 system), nothing wrong: "C:\Program Files\nodejs\node.exe" ...
Read more >
Could run Electron-rebuild with node-pty - Stack Overflow
I am trying to create an electron app using react, with terminal integration. I followed this tutorial to create basic react + electron ......
Read more >
node-pty-prebuilt-multiarch - npm
Start using node-pty-prebuilt-multiarch in your project by running `npm i node-pty-prebuilt-multiarch`. There are 17 other projects in the ...
Read more >
How to fix npm install errors on Gateway? - MagicMirror Forum
I'm trying to install MagicMirror on Raspbian. However, after installing the Gateway to control the EXT-detector and entering npm install to ...
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error: npm ERR! code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found