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

Error: Cannot find module '..\build\Debug\pty.node' #360

Closed
roguexiaohuihui opened this issue Oct 22, 2019 · 4 comments
Closed

Error: Cannot find module '..\build\Debug\pty.node' #360

roguexiaohuihui opened this issue Oct 22, 2019 · 4 comments
Labels

Comments

@roguexiaohuihui
Copy link

roguexiaohuihui commented Oct 22, 2019

Environment details

  • OS: Windows
  • OS version: Windows 10
  • node-pty version: ^0.8.1

Issue description

develop the VSCODE plug-in,want to use node-pty to implement a function.

image

image

@Tyriar
Copy link
Member

Tyriar commented Oct 22, 2019

You can try install a beta to see what the issue is, a better error message should appear then. Note that node-pty is a native node module which are complex to ship within vscode extensions though, you will need to either ship the native binaries for all platforms with the extension or dynamically download them.

@roguexiaohuihui
Copy link
Author

image

was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).

@roguexiaohuihui
Copy link
Author

You can try install a beta to see what the issue is, a better error message should appear then. Note that node-pty is a native node module which are complex to ship within vscode extensions though, you will need to either ship the native binaries for all platforms with the extension or dynamically download them.

I tried 0.9.0-beta19, but the results were the same.

In the vscode plug-in, I simply introduced the node-pty module and then called spawn and it went wrong.

I don't know if it is related to the plug-in running environment. Could you please help me

@Tyriar
Copy link
Member

Tyriar commented Oct 23, 2019

This is another problem with native node modules in VS Code extensions, you shouldn't use node-pty there as it would be a maintenance nightmare and your extension would break whenever we update Electron

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

2 participants