Node.js says it can't load sqlite3 module, but does anyway

前端 未结 7 1710
遥遥无期
遥遥无期 2021-01-31 09:23

I\'m working with the new Node.js Tools for Visual Studio and included the sqlite3 npm module. When I call require(\'sqlite3\') it throws the error:

7条回答
  •  轮回少年
    2021-01-31 10:05

    This is what worked for me: https://www.npmjs.com/package/sqlite3

    npm install https://github.com/mapbox/node-sqlite3/tarball/master
    

提交回复
热议问题