dj123456 2022-09-23 07:26:15 阅读数:273

npm install sqlite3 
const sqlite3 = require('sqlite3');


Compiled with problems:X

ERROR in ./node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html 1:0
Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See > <!doctype html> | <html> | <head>

ERROR in ./node_modules/@gar/promisify/index.js 7:4-19
Module not found: Error: Can't resolve 'util' in 'D:\ct-coinfans\node_modules\@gar\promisify' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }