leetcode-cli: Error: Cannot find module 'sqlite3'
Problem Summary
当调用了chrome 插件之后,使用leetcode test,会产生 Error: Cannot find module ‘sqlite3’ 的错误。
[After using chrome plug-in, if we use the “leetcode test”] [Will generate the Error: Cannot find module ‘sqlite3’]
报错全文: Summary of Error: Error: Cannot find module ‘sqlite3’ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.Chrome.getCookies (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/cookie.chrome.js:132:17) at Plugin.plugin.signin (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/cookie.chrome.js:160:6) at Plugin.plugin.login (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/cookie.chrome.js:177:10) at Plugin.plugin.relogin (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/retry.js:74:8) at _cb (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/retry.js:49:16) at /usr/local/lib/node_modules/leetcode-cli/lib/plugins/leetcode.js:278:19
After delete the plugin(cookie.chorme) everything went well.
How to reproduce
- leetcode test 208.implement-trie-prefix-tree.python3.py
- as above described
Environment
- leetcode-cli version: 2.5.2
- OS version: macOS 10.13.6
- Node version:
- Npm version: 6.2.0
- cookie.chrome version: 2018.05.30
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 1
- Comments: 16 (2 by maintainers)
@z0re the error implies sqlite3 library is not installed successfully. Have u tried install cookie.chrome again?