terminal-plus icon indicating copy to clipboard operation
terminal-plus copied to clipboard

Error when open terminal-plus: was compiled against a different Node.js version using NODE_MODULE_VERSION 46

Open xdnroot opened this issue 5 years ago • 0 comments

I've install terminal-plus on atom 1.42.0, but when I tried to open the terminal, diplay this error on console log:

Cannot find module '../build/Release/pty.node'

The module '/home/xdnroot/.atom/packages/terminal-plus/node_modules/pty.js/bin/linux/x64.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 46. This version of Node.js requires NODE_MODULE_VERSION 69. Please try re-compiling or re-installing the module (for instance, using npm rebuildornpm install). Error: The module '/home/xdnroot/.atom/packages/terminal-plus/node_modules/pty.js/bin/linux/x64.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 46. This version of Node.js requires NODE_MODULE_VERSION 69. Please try re-compiling or re-installing the module (for instance, using npm rebuildornpm install). at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31) at Module.load (internal/modules/cjs/loader.js:602:32) at tryModuleLoad (internal/modules/cjs/loader.js:541:12) at Function.Module._load (internal/modules/cjs/loader.js:533:3) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/node_modules/pty.js/lib/pty.js:17:9) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/node_modules/pty.js/lib/pty.js:477:3) at Module._compile (internal/modules/cjs/loader.js:693:30) at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:255:23) at Module.load (internal/modules/cjs/loader.js:602:32) at tryModuleLoad (internal/modules/cjs/loader.js:541:12) at Function.Module._load (internal/modules/cjs/loader.js:533:3) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/node_modules/pty.js/index.js:2:18) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/node_modules/pty.js/index.js:4:3) at Module._compile (internal/modules/cjs/loader.js:693:30) at Object.value [as .js] (/usr/share/atom/resources/app.asar/src/compile-cache.js:255:23) at Module.load (internal/modules/cjs/loader.js:602:32) at tryModuleLoad (internal/modules/cjs/loader.js:541:12) at Function.Module._load (internal/modules/cjs/loader.js:533:3) at Module.require (internal/modules/cjs/loader.js:640:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/lib/process.coffee:1:7) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/lib/process.coffee:1:1) at Object.<anonymous> (/home/xdnroot/.atom/packages/terminal-plus/lib/process.coffee:1:1) at Module._compile (internal/modules/cjs/loader.js:693:30) (anonymous) @ <embedded>:14 (anonymous) @ <embedded>:14 simpleDispatch @ <embedded>:11 emit @ <embedded>:11 (anonymous) @ <embedded>:14 emit @ events.js:182 emit @ internal/child_process.js:812 _tickCallback @ internal/process/next_tick.js:63 <embedded>:14 handler is not defined ReferenceError: handler is not defined at process.<anonymous> (/usr/share/atom/resources/app.asar/src/task-bootstrap.js:69:20) at process.emit (events.js:182:13) at emit (internal/child_process.js:812:12) at process._tickCallback (internal/process/next_tick.js:63:19)

I use nodejs v12.13.1 where the NODE_MODULE_VERSION is 72 and npm 6.12.1

xdnroot avatar Dec 20 '19 22:12 xdnroot