reactide: [Installation] npm install broken

Hi, I’m trying to install ReactIDE, but when I use npm install there’s an error :

$ npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN reactide@1.0.0 No repository field.

and :

$ npm start

> reactide@1.0.0 start /opt/reactide
> cross-env NODE_ENV=production electron .

/opt/reactide/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

npm ERR! Linux 4.4.0-45-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! reactide@1.0.0 start: `cross-env NODE_ENV=production electron .`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the reactide@1.0.0 start script 'cross-env NODE_ENV=production electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the reactide package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env NODE_ENV=production electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs reactide
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls reactide
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/reactide/npm-debug.log

I’m on a VM on vagrant.

Regards, Fabrice

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20

Most upvoted comments

I once did a project with electron on a minimal linux system and I found that there are many dependencies. sudo apt install libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev Those should be all the packages you need.

Source: https://electron.atom.io/docs/development/build-instructions-linux/

I’d also recommend trying this: https://github.com/electron/electron-api-demos/releases/download/v1.3.0/electron-api-demos-linux.zip to see if electron starts or not

It’s maybe a misunderstannding 😃 : I install/launch ReactIDE on my system. And I read the .JSX files with the shared folders. But, but, I must install npm and nodeJS… And so, I’ve lost the interest in using a VM 😦