Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

issue when execute #477

Closed
dashng opened this issue Jul 22, 2018 · 6 comments
Closed

issue when execute #477

dashng opened this issue Jul 22, 2018 · 6 comments
Labels

Comments

@dashng
Copy link

dashng commented Jul 22, 2018

pkg/prelude/bootstrap.js:1176
      throw error;
      ^

Error: Cannot find module '/snapshot/cnt-tool/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (module.js:545:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1278:46)
    at Function.Module._load (module.js:472:25)
    at Module.require (module.js:594:17)
    at Module.require (pkg/prelude/bootstrap.js:1157:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/snapshot/cnt-tool/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (pkg/prelude/bootstrap.js:1252:22)
    at Object.Module._extensions..js (module.js:661:10)
    at Module.load (module.js:563:32)

How to fix this? Any help will be appreciated.

@dashng
Copy link
Author

dashng commented Jul 22, 2018


Error: Cannot find module '/snapshot/cnt-tool/node_modules/sqlite3-promise/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (module.js:545:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1278:46)
    at Function.Module._load (module.js:472:25)
    at Module.require (module.js:594:17)
    at Module.require (pkg/prelude/bootstrap.js:1157:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/snapshot/cnt-tool/node_modules/sqlite3-promise/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (pkg/prelude/bootstrap.js:1252:22)
    at Object.Module._extensions..js (module.js:661:10)
    at Module.load (module.js:563:32)

@dashng
Copy link
Author

dashng commented Jul 31, 2018

We use docker as our final solution.

Hope pkg can resolve this issue in future.

@mahyrpt
Copy link

mahyrpt commented Aug 8, 2018

Same issue here as well, any solution?


Error: Cannot find module '\snapshot\wsi\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1278:46)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at Module.require (pkg/prelude/bootstrap.js:1157:31)
    at require (internal/module.js:20:19)
    at Object. (\snapshot\wsi\node_modules\sqlite3\lib\sqlite3.js:4:15)
    at Module._compile (pkg/prelude/bootstrap.js:1252:22)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32) 

@jameswilddev
Copy link

I'm also having this when cross compiling from Ubuntu Trusty x64 on Travis CI to Windows x86 - repro at SUNRUSE-Junk-Drawer/vnhtml@a1933e6.

Issues which seem to duplicate this one:

Seems quite widespread, anyone have any ideas?

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

@github-actions github-actions bot added the Stale label Apr 14, 2021
@github-actions
Copy link

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants