Closed brvier closed 8 years ago
The version published on npm is old. The dependencies in the npm world moves fast, and I'm doing a lot of refactoring and bug fixes currently. Can you try to clone the git repository and do a npm install from here?
And node 0.12.2 is not common. How do you have installed it? On debian/ubuntu, it is still node 0.10, and when using sources or packages, it is often more recent versions (0.12.7 or .8 for the 0.12 branch).
Dont remenber how i installed it ... probably from nodesource for Atom.
So i come back to the one available in Jessie.
# npm install -g cozy-labs/cozy-desktop
npm WARN install Couldn't install optional dependency: Unsupported
loadDep:har-validator → a ▐ ╢█████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:sntp → 304 ▐ ╢█████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"3.4.1"})
WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"3.4.1"})
npm ERR! Linux 4.2.0-0.bpo.1-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "cozy-labs/cozy-desktop"
npm ERR! node v0.10.29
npm ERR! npm v3.4.1
npm ERR! path /usr/local/lib/node_modules/cozy-desktop/bin/cli.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! enoent ENOENT, chmod '/usr/local/lib/node_modules/cozy-desktop/bin/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/khertan/Projects/ForRunners/npm-debug.log
and yes i need 0.12 at least for ionic :p
You can use node 0.12, but you should install a more recent version of it.
Cozy-desktop is coded in coffeescript, and the compiled JS files are not versioned in the repository. Npm seems to not appreciate that. Can you clone the repository with git and do a npm install
from here?
Same error from git ... even with a more recent release of node :
root@x200:/home/khertan/Téléchargements/cozy-desktop# npm install -g
npm WARN lifecycle cozy-desktop@0.5.0~prepublish: cannot run in wd %s %s (wd=%s) cozy-desktop@0.5.0 gulp build /home/khertan/Téléchargements/cozy-desktop
npm WARN install Couldn't install optional dependency: Unsupported
npm ERR! Linux 4.2.0-0.bpo.1-amd64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
npm ERR! node v5.1.0
npm ERR! npm v3.4.1
npm ERR! path /usr/local/lib/node_modules/cozy-desktop/bin/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/cozy-desktop/bin/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/khertan/Téléchargements/cozy-desktop/npm-debug.log
Installing with npm install (without g seems to works) from the git folder seems to works ...
Good! Now, you can run npm run build
to compile the JS files. Then, you should make a backup of your data (cozy-desktop is still experimental and losing data can happen).
After that:
bin/cli.js add-remote-cozy https://url.of.my.cozy/ devicename /sync/directory
bin/cli.js pull
The files on the cozy should be available in your /sync/directory
. You'll have to wait to have synchronization in both way. I'm still coding it ;-)
Thx for help i ll be able to play with it and see where i could help.
Install from npm failed on debian jessie
So it s look like that s a leveldown packaging error.