解决typeorm使用sqlite3报错DriverPackageNotInstalledError

105 阅读1分钟

express + ts + typeorm + sqlite3,使用pnpm安装项目依赖,出现DriverPackageNotInstalledError并要求安装sqlite3,而sqlite3已经使用pnpm安装了。

throw new DriverPackageNotInstalledError("SQLite", "sqlite3") SQLite package has not been found installed. Try to install it: npm install sqlite3 --save

报错信息及解决方案 image.png

解决方案参考:解决midwayjs使用sqlite3报DriverPackageNotInstalledError错误_app threw an error during load driverpackagenotins-CSDN博客