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

Failed install on node.js #254

Closed
fcasarsasolari opened this issue Jun 24, 2016 · 4 comments
Closed

Failed install on node.js #254

fcasarsasolari opened this issue Jun 24, 2016 · 4 comments

Comments

@fcasarsasolari
Copy link

Hello,

as in the documentation i tryed installing using node:
npm install indexeddbshim but i can not use the the library.

I can not even to load it with require, failing with a ReferenceError: window is not defined ( that is quite obvious). Looking at the downloaded files in node_modules i don't see the indexeddbshim-node.*.js files.

Thanks.

@brettz9
Copy link
Collaborator

brettz9 commented Jun 25, 2016

The Node support is only in master and not yet part of a published release. If you want to use in Node, for now, you'd have to clone the repo. I'll close, but feel free to post any further comments if you wish.

@subvertallchris
Copy link

Has any thought been given to releasing the version with node support to NPM?

@brettz9
Copy link
Collaborator

brettz9 commented Sep 20, 2016

See my comment at #259 (comment)

@brettz9
Copy link
Collaborator

brettz9 commented Feb 23, 2017

There had been an issue limiting Node use now fixed in master (as discussed in #262).

For npm support, pending a stable version, you can use npm's ability to directly import Git repositories like:

"dependencies": {
    "indexeddbshim": "https://github.com/axemclion/IndexedDBShim"
  },

or, refer to a specific tag, SHA commit or branch as per https://docs.npmjs.com/files/package.json#git-urls-as-dependencies. But still need to get more done before a bona fide versioned release on our side I think.

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

3 participants