coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.72k stars 240 forks source link

Error: Cannot find module 'persistencejs/persistencejs' #39

Closed ptica closed 13 years ago

ptica commented 13 years ago

npm install persistencejs goes fine

but var persistence = require('persistencejs/persistence').persistence; gives me Error: Cannot find module 'persistencejs/persistence'

var persistence = require('persistencejs/persistence.min').persistence; is ok

my node version is v0.5.0-pre

zefhemel commented 13 years ago

What version of npm?

ptica commented 13 years ago

hi npm --version 0.3.15

npm update npm npm info it worked if it ends with ok npm info using npm@0.3.15 npm info using node@v0.5.0-pre npm info outdated Everything up-to-date. npm info update Nothing to update npm ok

if I require the minified file and presistencejs/lib(!)/persistence.store.sqlite (!) lib needed to add to find it - seems the package.json is not understood :(

defunctzombie commented 13 years ago

check out shtylman/persistencejs@dd6471add12763623d360650fd15d7ea433c177e on one way I fixed the problem. You will probly need to add a few more requires to index.js