Giter Club home page Giter Club logo

cjk-unihan's People

Contributors

nahanil avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

cjk-unihan's Issues

Newer node versions fails to use sqlite3

For reference, node 6.9.1 results into :

cri-ninja@hp-840:~/Documents/font-2-svg-files$ nodejs
> var cjkUnihan = require("cjk-unihan"); cjkUnihan.get("我", function(err, result){ console.log("Full lookup all done:", result); });
Error: Cannot find module '/home/cri-ninja/Documents/font-2-svg-files/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/cri-ninja/Documents/font-2-svg-files/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
> .exit

Examining the said link , I found out I have the /node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node (46).

I do :

npm uninstall sqlite3         # uninstall sqlite3
nvm use 4.6.1                 # switch to node 4.6.1
nodejs                        # opens js prompt
> var cjkUnihan = require("cjk-unihan"); cjkUnihan.get("我", function(err, result){ console.log("Full lookup all done:", result); });
{ all: 'Known data' }
> Full lookup all done: undefined

If you have an update, please push it, we would appreciate. We want to provide open license fonts to ease Chinese learning.

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.