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

Version Mismatch - Nuclide Server (233) and Atom Plugin (232) #1206

Open guswelter opened 7 years ago

guswelter commented 7 years ago

Issue and Steps to Reproduce

Latest available Nuclide plugin version on Atom is 232. Latest available Nuclide-Server via npm is 233.

Reproduce:

  1. Install latest Atom Nuclide plugin (232)
  2. Install latest Nuclide server via npm (233)
  3. Connect, and get version mismatch.

Expected Behavior

Versions should match.

Actual Behavior

Receive version mismatch error when trying to connect to Nuclide Server in Atom: "Version mismatch. Client at 232 while server at 233."

Versions

Additional Details

guswelter commented 7 years ago

This is a duplicate of #1201 because @bottledwalter close it in error and has not reopened.

colecrtr commented 7 years ago

Different versions but same error: The server successfully started, but we were unable to connect. Original error message: Version mismatch. Client at 236 while server at 238.

So I installed version 236 on the server via npm install -g nuclide@0.236.0 and I'm still getting the same error as above saying the server is on version 238.

I checked npm -g list and it returned nuclide@0.236.0, matching the client version.

tim-soft commented 7 years ago

I was facing this issue in ubuntu 16.04 because my .bashrc was pointing non-interactive mode npm to the wrong place (I'm using NVM to manage my node versions)

If you are using nvm on ubuntu, the first step is to fully remove nodejs -> the ubuntu version of node How to completely remove nodejs

Assuming nvm is installed along with node, add the following solution to the top of your bashrc file in your home dir bashrc modification