Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change share version in package.json to 0.6.x. instead of github master #1

Open
jwlrs opened this issue Jan 18, 2014 · 3 comments
Open

Comments

@jwlrs
Copy link

jwlrs commented Jan 18, 2014

When I attempt to run plunker_collab I'm getting:

/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:33
  model = sharejs.server.createModel({
                         ^
TypeError: Object #<Object> has no method 'createModel'
    at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:33:26)
    at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:144:4)
    at Module._compile (module.js:449:26)
    at Object.require.extensions..coffee (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)
    at Module.require (module.js:357:17)
    at require (module.js:373:17)
    at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/server.js:5:14)
    at Module._compile (module.js:449:26)

Doing a bit of sluething, I suspect that perhaps line 25 of index.coffee should not be

model = sharejs.server.createClient

but instead should be

model = sharejs.server.createModel

But if I make that change, I get a different error:

/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/node_modules/livedb/lib/index.js:83
    throw new Error('Missing or invalid snapshot db');
          ^
Error: Missing or invalid snapshot db
    at new exports.client (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/node_modules/livedb/lib/index.js:83:11)
    at Object.exports.client (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/node_modules/livedb/lib/index.js:75:41)
    at new ShareInstance (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/lib/server/index.js:23:27)
    at Object.exports.createClient (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/share/lib/server/index.js:123:10)
    at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:33:26)
    at Object.<anonymous> (/Users/USER/SOMEDIR/plunker/plunker_collab/index.coffee:144:4)
    at Module._compile (module.js:449:26)
    at Object.require.extensions..coffee (/Users/USER/SOMEDIR/plunker/plunker_collab/node_modules/coffee-script/lib/coffee-script/coffee-script.js:30:21)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)
~/apps/plunker/plunker_collab# node server.js
@ggoodman
Copy link
Member

Try changing the share version in package.json to 0.6.x. It was probably a bad idea of mine to use the github master.

@jwlrs
Copy link
Author

jwlrs commented Jan 18, 2014

Hmmm... I assume you mean ShareJS?

I changed line 22 of package.json to

"ShareJS": "0.6.x",

and did an npm install. I got:

npm http GET https://registry.npmjs.org/ShareJS
npm http 404 https://registry.npmjs.org/ShareJS
npm ERR! 404 'ShareJS' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'plunker_collab'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

However then I did a bit of digging and decided this was what we needed

"plunker-share": "0.6.x",

But then I get this:

npm http GET https://registry.npmjs.org/plunker-share
npm http 200 https://registry.npmjs.org/plunker-share
npm ERR! notarget No compatible version found: plunker-share@'>=0.6.0-0 <0.7.0-0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.5.1"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting

(forgive me, I'm not a node / npm guy so this is new to me)

@jwlrs
Copy link
Author

jwlrs commented Jan 18, 2014

...oops, you did say "share". Using:

"share": "0.6.x",

and then npm install installs fine, and collab now starts too. Cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants