developit / dropfox

🦊 📂 A dropbox client powered by Preact, Electron and Photon
MIT License
121 stars 15 forks source link

npm install fails on Linux #3

Open popey opened 8 years ago

popey commented 8 years ago

Running Ubuntu 16.04 with npm 3.5.2 & node 4.2.6..

npm install results in:-

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.11 npm ERR! Linux 4.4.0-17-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! electron-prebuilt@0.34.5 postinstall: node install.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the electron-prebuilt@0.34.5 postinstall script 'node install.js'. 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 electron-prebuilt package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron-prebuilt npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron-prebuilt npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/alan/Development/dropfox/upstream/dropfox/npm-debug.log

popey commented 8 years ago

http://paste.ubuntu.com/15701431/ is the /home/alan/Development/dropfox/upstream/dropfox/npm-debug.log it suggests I provide.

developit commented 8 years ago

Hiya @popey,

I'm not sure the dependencies used here work quite properly under npm 3. Can you try using NPM 2?

npm i npm@2
alias npm=./node_modules/.bin/npm
npm install
developit commented 8 years ago

I just updated all of the dependencies (they were last updated in December!), including Babel, which was relying on a version of the Chokidar filesystem module that seemed to be causing the issue you ran into. It should also work properly with npm@3 now :)

popey commented 8 years ago

Ok, tried and it's still a little unhappy.

http://paste.ubuntu.com/15710145/