facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 682 forks source link

How can I change the node version? #1620

Open dotku opened 5 years ago

dotku commented 5 years ago

Issue and Steps to Reproduce

Install nuclide using node v10, because I realized v10 is not LTS version, so I want to switch to v8. After install Node V8, start the terminal, return error with v10 settings:

For more info check out the docs: https://nuclide.io/docs/features/terminal
Error starting process:
Error: Remote Error: Usage: pty.fork(file, args, env, cwd, cols, rows, uid, gid, utf8, onexit) processing message {"protocol":"service_framework3_rpc","type":"call","method":"PtyService/spawn","id":15,"args":{"info":{"terminalType":"xterm-256color","environment":[],"cwd":"/usr/share/nginx/"},"client":-2}}
"Error: Usage: pty.fork(file, args, env, cwd, cols, rows, uid, gid, utf8, onexit)\n    at new UnixTerminal (/home/ec2-user/.nvm/versions/node/v10.11.0/lib/node_modules/nuclide/node_modules/nuclide-prebuilt-libs/pty/lib/unixTerminal.js:53:24)\n    at Object.spawn (/home/ec2-user/.nvm/versions/node/v10.11.0/lib/node_modules/nuclide/node_modules/nuclide-prebuilt-libs/pty/lib/index.js:12:12)\n    at new PtyImplementation (/home/ec2-user/.nvm/versions/node/v10.11.0/lib/node_modules/nuclide/modules/atom-ide-ui/pkg/atom-ide-terminal/lib/pty-service/PtyService.js:247:42)\n    at RpcConnection.spawn (/home/ec2-user/.nvm/versions/node/v10.11.0/lib/node_modules/nuclide/modules/atom-ide-ui/pkg/atom-ide-terminal/lib/pty-service/PtyService.js:120:10)"

My top goal is actually try to run terminal on atom, it gave me error, and reported over here: https://github.com/facebook/nuclide/issues/1431

That's why I downgrade Node v10 to Node v8

Expected Behavior

It should open the terminal window

Actual Behavior

Reported error with old node configuration.

Versions

Additional Details

├── Sublime-Style-Column-Selection@1.7.4 ├── change-case@0.6.5 ├── file-icons@2.1.25 ├── highlight-selected@0.14.0 ├── language-babel@2.85.0 ├── language-graphql@0.10.1 ├── language-haskell@1.17.8 ├── language-html-babel@0.49.2 ├── language-ini@1.20.0 ├── language-kotlin@0.5.0 ├── language-lua@0.9.11 ├── language-ocaml@1.9.5 ├── language-rust@0.4.12 ├── language-scala@1.1.9 ├── language-swift@0.5.0 ├── language-thrift@1.0.2 ├── nuclide@0.349.0 ├── nuclide-format-js@0.0.47 ├── platformio-ide-terminal@2.8.4 ├── pretty-json@2.0.3 ├── remote-sync@4.1.8 ├── set-syntax@0.4.0 ├── sort-lines@0.18.0 ├── structure-view@0.2.1 ├── teletype@0.13.3 └── tool-bar@1.1.10