mxabierto / debate

(sin mantenimiento) Debate público sobre la Política Nacional de Datos Abiertos en México. Powered by DemocracyOS.
http://politica.datos.gob.mx
1 stars 0 forks source link

No se pueden cargar los fixtures #9

Closed defvol closed 10 years ago

defvol commented 10 years ago
$ node ./bin/dos-db load law ./lib/fixtures/laws.json 
Connecting to mongodb://localhost:27017/DemocracyOS-dev
Register mongoose models.

/Users/Rod/Codes/democracyOS-app/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:286
          throw err;
                ^
Error: Cannot find module 'lib/utils'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/Rod/Codes/democracyOS-app/lib/db-api/citizen.js:7:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
defvol commented 10 years ago

Se arregla agregando NODE_PATH=. antes del comando