安裝sqlite3所需環境bi
node 必要的8.9.4以上版本
直接參考文章
-
option1
1:安裝 node-gypnpm install -g node-gyp
2:PowerShell或cmd.exe(以管理員身份運行) 安裝 windows-build-tools 里面帶有python 和 vs_buildTools.exe
npm install --global --production windows-build-tools
image.png3:下載 better-sqlite3
npm install better-sqlite3
4: 如果報python 變量的錯 設置python npm變量 如果不行直接加入系統的環境變量的path (好像必須是2.7版本的)
npm config set python python2.7地址(C:\\Users\\用戶\\.windows-build-tools\\python27)
5: v140工具集缺失 如下
image.png
5.1:雙擊打開 vs_buildTools.exe
image.png
5.2: 點擊修改
image.png
5.3: 下載v140 反正挺大的
image.png
5.4: 完成后 啟動一下
image.png
6: 再次運行
npm install better-sqlite3
image.png