Skip to content

Error: Cannot find module 'sqlite3' #122

Open
@wnykuang

Description

@wnykuang

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

  1. leetcode test 208.implement-trie-prefix-tree.python3.py
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions