Coder Social home page Coder Social logo

Comments (10)

frankrousseau avatar frankrousseau commented on July 21, 2024

Ok the first running requires two commands:

npm install
cake build

Did you run them?

Another question what is you version of Node.js?

from cozy-data-system.

carnotweat avatar carnotweat commented on July 21, 2024
node -v
v0.8.16

Yes I ran sudo[with/wo] npm start after sudo npm install and cake build.Samer error.

from cozy-data-system.

jsilvestre avatar jsilvestre commented on July 21, 2024

We don't support node 0.8.x anymore, only 0.10.x. Can you try with a more recent version of Node please?

from cozy-data-system.

carnotweat avatar carnotweat commented on July 21, 2024

//Although I got cozy-dev dev:start/init workingon my machine now.
Upgraded node to 0.10,told nvm to use this version, npm installed puchdb,leveldb,cozy-light.
cozy-light start threw this error:

Error: /usr/local/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/leveldown/build/Release/leveldown.node: undefined symbol: _ZN4node6Buffer3NewEPcj

PS:
[cf : https://github.com/cozy/cozy-dev/blob/master/src/main.coffee#L81]
Another issue is with the main.js that your npm package places in my node_modules.
It tries to return the github password prompt (like any other ssh),probably without defining/linking a password method to the command object or telling commad object to read 'password' otherwise.
[All dependencies are met]

cozy-dev  new testapp --github carnotweat
/usr/local/lib/node_modules/cozy-dev/lib/main.js:91
return program.password("Github password:", (function(_this) {
                     ^
TypeError: Object #<Command> has no method 'password'

from cozy-data-system.

frankrousseau avatar frankrousseau commented on July 21, 2024

@jsilvestre I saw you used inquirer in your PR. Do you have more information about that issue?

from cozy-data-system.

jsilvestre avatar jsilvestre commented on July 21, 2024

Yes, I haven't finished my work and it hasn't been published (because not working properly yet). So this error corresponds exactly to this issue: cozy/cozy-dev#39
It'll be fixed by the use of inquirer.

from cozy-data-system.

jsilvestre avatar jsilvestre commented on July 21, 2024

@carnotweat we have published a new version of cozy-dev (1.0.11). It should be working now, let us know if anything goes wrong.

If you still have trouble with cozy-light, I suggest you open an issue on the dedicated repository: https://github.com/cozy-labs/cozy-light/issues
Thank you very much for your patience and time, that help us a lot improving the project!

from cozy-data-system.

carnotweat avatar carnotweat commented on July 21, 2024
cd /'path to'/cozy-dev
git pull
chmod +x bin/cozy
./bin/cozy
module.js:340
    throw err;
          ^
Error: Cannot find module '/'path to'/cozy-dev/lib/main'

In fact the repo has no folder named lib.

from cozy-data-system.

jsilvestre avatar jsilvestre commented on July 21, 2024

If you want to use cozy-dev, you should install it from npm: sudo npm install -g cozy-dev

if you want to run it from a clone, you must build the sources with cake build.

You could also run the coffee version directly: coffee src/main.coffee [yourcommand] (I'm not a 100% sure it's working, but it should).

from cozy-data-system.

poupotte avatar poupotte commented on July 21, 2024

@jsilvestre , Can I close this issue ?

from cozy-data-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.