TryGhost / node-sqlite3

SQLite3 bindings for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sqlite3 Error Trying to Run: "npm install sqlite3 --save" (JS/Node in VSCode)

NCalleja opened this issue · comments

Issue Summary

I'm following a Pluralsight Tutorial, trying to learn JS and Node.js but I'm running into trouble when running this in the terminal:

npm install sqlite3 --save

When I attempt to run that, I get this error:

_PS C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project> npm install sqlite3 npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm ERR! code 1 npm ERR! path C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project\node_modules\sqlite3 npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm ERR! 'Program' is not recognized as an internal or external command, npm ERR! operable program or batch file. npm ERR! node:internal/modules/cjs/loader:1078 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module 'C:\Users\nickc\Desktop@mapbox\node-pre-gyp\bin\node-pre-gyp' npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) npm ERR! at Module._load (node:internal/modules/cjs/loader:920:27) npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) npm ERR! at node:internal/main/run_main_module:23:47 { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [] npm ERR! } npm ERR! npm ERR! Node.js v18.15.0

npm ERR! A complete log of this run can be found in: C:\Users\nickc\AppData\Local\npm-cache_logs\2023-05-30T15_10_56_173Z-debug-0.log_

I was able to run this just fine:

npm install sqlite --save

Why am I having so much trouble trying to install sqlite3? I kind of need it to use a relational database with node.js but I can't move forward until I figure out why this is happening.

I've been uninstalling and reinstalling npm in different ways and I even tried to do:

npm uninstall -g @mapbox/node-pre-gyp
npm install -g node-pre-gyp

ChatGPT suggested I tried running those to fix it. Can you help me get sqlite3 to run on my devices?

Relevant logs or output

----------------------------------- TERMINAL LOG BELOW --------------------------------------------------------

PS C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project> np
m install sqlite3 --save
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\@npmcli',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project\node_modules\@npmcli\fs\lib'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\@npmcli\\fs\\lib'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project\node_modules\sqlite3
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! 'Program' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
npm ERR! node:internal/modules/cjs/loader:1078
npm ERR!   throw err;
npm ERR!   ^
npm ERR!
npm ERR! Error: Cannot find module 'C:\Users\nickc\Desktop\@mapbox\node-pre-gyp\bin\node-pre-gyp'
npm ERR!     at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:920:27)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR!     at node:internal/main/run_main_module:23:47 {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: []
npm ERR! }
npm ERR!
npm ERR! Node.js v18.15.0

npm ERR! A complete log of this run can be found in: C:\Users\nickc\AppData\Local\npm-cache\_logs\2023-05-31T16_35_11_152Z-debug-0.log

----------------------------------- DEBUG LOG BELOW --------------------------------------------------------

0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\nickc\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
1 info using npm@9.6.7
2 info using node@v18.15.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Users\nickc\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project\.npmrc Completed in 0ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:C:\Users\nickc\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\nickc\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 10ms
17 timing npm:load:configload Completed in 10ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install sqlite3
21 verbose argv "install" "sqlite3" "--save"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 3ms
25 verbose logfile logs-max:10 dir:C:\Users\nickc\AppData\Local\npm-cache\_logs\2023-05-31T16_35_11_152Z-
26 verbose logfile C:\Users\nickc\AppData\Local\npm-cache\_logs\2023-05-31T16_35_11_152Z-debug-0.log
27 timing npm:load:logFile Completed in 10ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 25ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 2 files
33 timing idealTree:init Completed in 39ms
34 timing idealTree:userRequests Completed in 1ms
35 silly idealTree buildDeps
36 silly fetch manifest sqlite3@*
37 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
38 silly logfile done cleaning log files
39 http fetch GET 200 https://registry.npmjs.org/sqlite3 241ms (cache revalidated)
40 silly placeDep ROOT sqlite3@5.1.6 OK for: m8-examples@1.0.0 want: *
41 silly fetch manifest node-addon-api@^4.2.0
42 silly fetch manifest node-gyp@8.x
43 http fetch GET 200 https://registry.npmjs.org/node-addon-api 58ms (cache revalidated)
44 http fetch GET 200 https://registry.npmjs.org/node-gyp 125ms (cache revalidated)
45 timing idealTree:#root Completed in 374ms
46 silly placeDep ROOT node-addon-api@4.3.0 OK for: sqlite3@5.1.6 want: ^4.2.0
47 silly placeDep ROOT node-gyp@8.4.1 OK for: sqlite3@5.1.6 want: 8.x
48 silly fetch manifest env-paths@^2.2.0
49 silly fetch manifest graceful-fs@^4.2.6
50 silly fetch manifest make-fetch-happen@^9.1.0
51 silly fetch manifest npmlog@^6.0.0
52 silly fetch manifest which@^2.0.2
53 http fetch GET 200 https://registry.npmjs.org/make-fetch-happen 56ms (cache revalidated)
54 http fetch GET 200 https://registry.npmjs.org/graceful-fs 63ms (cache revalidated)
55 http fetch GET 200 https://registry.npmjs.org/which 127ms (cache revalidated)
56 http fetch GET 200 https://registry.npmjs.org/env-paths 133ms (cache revalidated)
57 http fetch GET 200 https://registry.npmjs.org/npmlog 389ms (cache revalidated)
58 timing idealTree:node_modules/sqlite3 Completed in 393ms
59 timing idealTree:node_modules/node-addon-api Completed in 0ms
60 silly placeDep ROOT env-paths@2.2.1 OK for: node-gyp@8.4.1 want: ^2.2.0
61 silly placeDep ROOT graceful-fs@4.2.11 OK for: node-gyp@8.4.1 want: ^4.2.6
62 silly placeDep ROOT make-fetch-happen@9.1.0 OK for: node-gyp@8.4.1 want: ^9.1.0
63 silly fetch manifest agentkeepalive@^4.1.3
64 silly fetch manifest cacache@^15.2.0
65 silly fetch manifest http-cache-semantics@^4.1.0
66 silly fetch manifest http-proxy-agent@^4.0.1
67 silly fetch manifest is-lambda@^1.0.1
68 silly fetch manifest minipass@^3.1.3
69 silly fetch manifest minipass-collect@^1.0.2
70 silly fetch manifest minipass-fetch@^1.3.2
71 silly fetch manifest minipass-flush@^1.0.5
72 silly fetch manifest minipass-pipeline@^1.2.4
73 silly fetch manifest negotiator@^0.6.2
74 silly fetch manifest promise-retry@^2.0.1
75 silly fetch manifest socks-proxy-agent@^6.0.0
76 silly fetch manifest ssri@^8.0.0
77 silly placeDep node_modules/node-gyp npmlog@6.0.2 OK for: node-gyp@8.4.1 want: ^6.0.0
78 silly fetch manifest are-we-there-yet@^3.0.0
79 silly fetch manifest gauge@^4.0.3
80 silly placeDep ROOT which@2.0.2 OK for: node-gyp@8.4.1 want: ^2.0.2
81 silly fetch manifest isexe@^2.0.0
82 http fetch GET 200 https://registry.npmjs.org/minipass 83ms (cache revalidated)
83 http fetch GET 200 https://registry.npmjs.org/agentkeepalive 91ms (cache revalidated)
84 http fetch GET 200 https://registry.npmjs.org/minipass-collect 89ms (cache revalidated)
85 http fetch GET 200 https://registry.npmjs.org/http-cache-semantics 91ms (cache revalidated)
86 http fetch GET 200 https://registry.npmjs.org/cacache 93ms (cache revalidated)
87 http fetch GET 200 https://registry.npmjs.org/promise-retry 142ms (cache revalidated)
88 http fetch GET 200 https://registry.npmjs.org/minipass-flush 144ms (cache revalidated)
89 http fetch GET 200 https://registry.npmjs.org/minipass-fetch 154ms (cache revalidated)
90 http fetch GET 200 https://registry.npmjs.org/is-lambda 160ms (cache revalidated)
91 http fetch GET 200 https://registry.npmjs.org/negotiator 160ms (cache revalidated)
92 http fetch GET 200 https://registry.npmjs.org/socks-proxy-agent 166ms (cache revalidated)
93 http fetch GET 200 https://registry.npmjs.org/gauge 164ms (cache revalidated)
94 http fetch GET 200 https://registry.npmjs.org/http-proxy-agent 172ms (cache revalidated)
95 http fetch GET 200 https://registry.npmjs.org/isexe 168ms (cache revalidated)
96 http fetch GET 200 https://registry.npmjs.org/minipass-pipeline 174ms (cache revalidated)
97 http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 174ms (cache revalidated)
98 http fetch GET 200 https://registry.npmjs.org/ssri 179ms (cache revalidated)
99 timing idealTree:node_modules/node-gyp Completed in 187ms
100 timing idealTree:node_modules/env-paths Completed in 0ms
101 timing idealTree:node_modules/graceful-fs Completed in 0ms
102 silly placeDep ROOT agentkeepalive@4.3.0 OK for: make-fetch-happen@9.1.0 want: ^4.1.3
103 silly fetch manifest depd@^2.0.0
104 silly fetch manifest humanize-ms@^1.2.1
105 silly placeDep ROOT cacache@15.3.0 OK for: make-fetch-happen@9.1.0 want: ^15.2.0
106 silly fetch manifest @npmcli/fs@^1.0.0
107 silly fetch manifest @npmcli/move-file@^1.0.1
108 silly fetch manifest infer-owner@^1.0.4
109 silly fetch manifest minipass@^3.1.1
110 silly fetch manifest minipass-pipeline@^1.2.2
111 silly fetch manifest p-map@^4.0.0
112 silly fetch manifest promise-inflight@^1.0.1
113 silly fetch manifest ssri@^8.0.1
114 silly fetch manifest unique-filename@^1.1.1
115 silly placeDep ROOT http-cache-semantics@4.1.1 OK for: make-fetch-happen@9.1.0 want: ^4.1.0
116 silly placeDep ROOT http-proxy-agent@4.0.1 OK for: make-fetch-happen@9.1.0 want: ^4.0.1
117 silly fetch manifest @tootallnate/once@1
118 silly placeDep ROOT is-lambda@1.0.1 OK for: make-fetch-happen@9.1.0 want: ^1.0.1
119 silly placeDep node_modules/make-fetch-happen minipass@3.3.6 OK for: make-fetch-happen@9.1.0 want: ^3.1.3
120 silly placeDep ROOT minipass-collect@1.0.2 OK for: make-fetch-happen@9.1.0 want: ^1.0.2
121 silly fetch manifest minipass@^3.0.0
122 silly placeDep ROOT minipass-fetch@1.4.1 OK for: make-fetch-happen@9.1.0 want: ^1.3.2
123 silly fetch manifest minipass@^3.1.0
124 silly fetch manifest minipass-sized@^1.0.3
125 silly fetch manifest encoding@^0.1.12
126 silly placeDep ROOT minipass-flush@1.0.5 OK for: make-fetch-happen@9.1.0 want: ^1.0.5
127 silly placeDep ROOT minipass-pipeline@1.2.4 OK for: make-fetch-happen@9.1.0 want: ^1.2.4
128 silly placeDep ROOT negotiator@0.6.3 OK for: make-fetch-happen@9.1.0 want: ^0.6.2
129 silly placeDep ROOT promise-retry@2.0.1 OK for: make-fetch-happen@9.1.0 want: ^2.0.1
130 silly fetch manifest err-code@^2.0.2
131 silly fetch manifest retry@^0.12.0
132 silly placeDep ROOT socks-proxy-agent@6.2.1 OK for: make-fetch-happen@9.1.0 want: ^6.0.0
133 silly fetch manifest socks@^2.6.2
134 silly placeDep ROOT ssri@8.0.1 OK for: make-fetch-happen@9.1.0 want: ^8.0.0
135 http fetch GET 200 https://registry.npmjs.org/infer-owner 76ms (cache revalidated)
136 http fetch GET 200 https://registry.npmjs.org/depd 82ms (cache revalidated)
137 http fetch GET 200 https://registry.npmjs.org/err-code 74ms (cache revalidated)
138 http fetch GET 200 https://registry.npmjs.org/minipass-sized 79ms (cache revalidated)
139 http fetch GET 200 https://registry.npmjs.org/encoding 78ms (cache revalidated)
140 http fetch GET 200 https://registry.npmjs.org/humanize-ms 90ms (cache revalidated)
141 http fetch GET 200 https://registry.npmjs.org/promise-inflight 90ms (cache revalidated)
142 http fetch GET 200 https://registry.npmjs.org/retry 81ms (cache revalidated)
143 http fetch GET 200 https://registry.npmjs.org/socks 80ms (cache revalidated)
144 http fetch GET 200 https://registry.npmjs.org/p-map 93ms (cache revalidated)
145 http fetch GET 200 https://registry.npmjs.org/@npmcli%2ffs 100ms (cache revalidated)
146 http fetch GET 200 https://registry.npmjs.org/unique-filename 98ms (cache revalidated)
147 http fetch GET 200 https://registry.npmjs.org/@tootallnate%2fonce 103ms (cache revalidated)
148 http fetch GET 200 https://registry.npmjs.org/@npmcli%2fmove-file 112ms (cache revalidated)
149 timing idealTree:node_modules/make-fetch-happen Completed in 119ms
150 silly placeDep ROOT depd@2.0.0 OK for: agentkeepalive@4.3.0 want: ^2.0.0
151 silly placeDep ROOT humanize-ms@1.2.1 OK for: agentkeepalive@4.3.0 want: ^1.2.1
152 timing idealTree:node_modules/agentkeepalive Completed in 1ms
153 silly placeDep ROOT @npmcli/fs@1.1.1 OK for: cacache@15.3.0 want: ^1.0.0
154 silly fetch manifest @gar/promisify@^1.0.1
155 silly placeDep ROOT @npmcli/move-file@1.1.2 OK for: cacache@15.3.0 want: ^1.0.1
156 silly placeDep ROOT infer-owner@1.0.4 OK for: cacache@15.3.0 want: ^1.0.4
157 silly placeDep node_modules/cacache minipass@3.3.6 OK for: cacache@15.3.0 want: ^3.1.1
158 silly placeDep ROOT p-map@4.0.0 OK for: cacache@15.3.0 want: ^4.0.0
159 silly fetch manifest aggregate-error@^3.0.0
160 silly placeDep ROOT promise-inflight@1.0.1 OK for: cacache@15.3.0 want: ^1.0.1
161 silly placeDep ROOT unique-filename@1.1.1 OK for: cacache@15.3.0 want: ^1.1.1
162 silly fetch manifest unique-slug@^2.0.0
163 http fetch GET 200 https://registry.npmjs.org/unique-slug 62ms (cache revalidated)
164 http fetch GET 200 https://registry.npmjs.org/aggregate-error 78ms (cache revalidated)
165 http fetch GET 200 https://registry.npmjs.org/@gar%2fpromisify 93ms (cache revalidated)
166 timing idealTree:node_modules/cacache Completed in 97ms
167 silly placeDep ROOT @gar/promisify@1.1.3 OK for: @npmcli/fs@1.1.1 want: ^1.0.1
168 timing idealTree:node_modules/@npmcli/fs Completed in 1ms
169 timing idealTree:node_modules/@gar/promisify Completed in 0ms
170 timing idealTree:node_modules/@npmcli/move-file Completed in 0ms
171 timing idealTree:node_modules/depd Completed in 0ms
172 timing idealTree:node_modules/http-cache-semantics Completed in 0ms
173 silly placeDep ROOT @tootallnate/once@1.1.2 OK for: http-proxy-agent@4.0.1 want: 1
174 timing idealTree:node_modules/http-proxy-agent Completed in 0ms
175 timing idealTree:node_modules/@tootallnate/once Completed in 0ms
176 timing idealTree:node_modules/humanize-ms Completed in 0ms
177 timing idealTree:node_modules/infer-owner Completed in 0ms
178 timing idealTree:node_modules/is-lambda Completed in 0ms
179 silly placeDep node_modules/minipass-collect minipass@3.3.6 OK for: minipass-collect@1.0.2 want: ^3.0.0
180 timing idealTree:node_modules/minipass-collect Completed in 0ms
181 silly placeDep ROOT encoding@0.1.13 OK for: minipass-fetch@1.4.1 want: ^0.1.12
182 silly fetch manifest iconv-lite@^0.6.2
183 silly placeDep node_modules/minipass-fetch minipass@3.3.6 OK for: minipass-fetch@1.4.1 want: ^3.1.0
184 silly placeDep ROOT minipass-sized@1.0.3 OK for: minipass-fetch@1.4.1 want: ^1.0.3
185 http fetch GET 200 https://registry.npmjs.org/iconv-lite 60ms (cache revalidated)
186 timing idealTree:node_modules/minipass-fetch Completed in 61ms
187 silly placeDep ROOT iconv-lite@0.6.3 OK for: encoding@0.1.13 want: ^0.6.2
188 silly fetch manifest safer-buffer@>= 2.1.2 < 3.0.0
189 http fetch GET 200 https://registry.npmjs.org/safer-buffer 57ms (cache revalidated)
190 timing idealTree:node_modules/encoding Completed in 58ms
191 silly placeDep ROOT safer-buffer@2.1.2 OK for: iconv-lite@0.6.3 want: >= 2.1.2 < 3.0.0
192 timing idealTree:node_modules/iconv-lite Completed in 1ms
193 silly placeDep node_modules/minipass-flush minipass@3.3.6 OK for: minipass-flush@1.0.5 want: ^3.0.0
194 timing idealTree:node_modules/minipass-flush Completed in 1ms
195 silly placeDep node_modules/minipass-pipeline minipass@3.3.6 OK for: minipass-pipeline@1.2.4 want: ^3.0.0
196 timing idealTree:node_modules/minipass-pipeline Completed in 1ms
197 silly placeDep node_modules/minipass-sized minipass@3.3.6 OK for: minipass-sized@1.0.3 want: ^3.0.0
198 timing idealTree:node_modules/minipass-sized Completed in 1ms
199 timing idealTree:node_modules/negotiator Completed in 0ms
200 silly placeDep ROOT aggregate-error@3.1.0 OK for: p-map@4.0.0 want: ^3.0.0
201 silly fetch manifest clean-stack@^2.0.0
202 silly fetch manifest indent-string@^4.0.0
203 http fetch GET 200 https://registry.npmjs.org/indent-string 51ms (cache revalidated)
204 http fetch GET 200 https://registry.npmjs.org/clean-stack 55ms (cache revalidated)
205 timing idealTree:node_modules/p-map Completed in 57ms
206 silly placeDep ROOT clean-stack@2.2.0 OK for: aggregate-error@3.1.0 want: ^2.0.0
207 silly placeDep ROOT indent-string@4.0.0 OK for: aggregate-error@3.1.0 want: ^4.0.0
208 timing idealTree:node_modules/aggregate-error Completed in 1ms
209 timing idealTree:node_modules/clean-stack Completed in 0ms
210 timing idealTree:node_modules/indent-string Completed in 0ms
211 timing idealTree:node_modules/promise-inflight Completed in 0ms
212 silly placeDep ROOT err-code@2.0.3 OK for: promise-retry@2.0.1 want: ^2.0.2
213 silly placeDep ROOT retry@0.12.0 OK for: promise-retry@2.0.1 want: ^0.12.0
214 timing idealTree:node_modules/promise-retry Completed in 2ms
215 timing idealTree:node_modules/err-code Completed in 0ms
216 timing idealTree:node_modules/retry Completed in 0ms
217 timing idealTree:node_modules/safer-buffer Completed in 0ms
218 silly placeDep ROOT socks@2.7.1 OK for: socks-proxy-agent@6.2.1 want: ^2.6.2
219 silly fetch manifest ip@^2.0.0
220 silly fetch manifest smart-buffer@^4.2.0
221 http fetch GET 200 https://registry.npmjs.org/smart-buffer 53ms (cache revalidated)
222 http fetch GET 200 https://registry.npmjs.org/ip 59ms (cache revalidated)
223 timing idealTree:node_modules/socks-proxy-agent Completed in 60ms
224 silly placeDep ROOT ip@2.0.0 OK for: socks@2.7.1 want: ^2.0.0
225 silly placeDep ROOT smart-buffer@4.2.0 OK for: socks@2.7.1 want: ^4.2.0
226 timing idealTree:node_modules/socks Completed in 1ms
227 timing idealTree:node_modules/ip Completed in 0ms
228 timing idealTree:node_modules/smart-buffer Completed in 0ms
229 silly placeDep node_modules/ssri minipass@3.3.6 OK for: ssri@8.0.1 want: ^3.1.1
230 timing idealTree:node_modules/ssri Completed in 1ms
231 silly placeDep ROOT unique-slug@2.0.2 OK for: unique-filename@1.1.1 want: ^2.0.0
232 silly fetch manifest imurmurhash@^0.1.4
233 http fetch GET 200 https://registry.npmjs.org/imurmurhash 54ms (cache revalidated)
234 timing idealTree:node_modules/unique-filename Completed in 55ms
235 silly placeDep ROOT imurmurhash@0.1.4 OK for: unique-slug@2.0.2 want: ^0.1.4
236 timing idealTree:node_modules/unique-slug Completed in 1ms
237 timing idealTree:node_modules/imurmurhash Completed in 0ms
238 silly placeDep ROOT isexe@2.0.0 OK for: which@2.0.2 want: ^2.0.0
239 timing idealTree:node_modules/which Completed in 1ms
240 timing idealTree:node_modules/isexe Completed in 0ms
241 timing idealTree:node_modules/cacache/node_modules/minipass Completed in 0ms
242 timing idealTree:node_modules/make-fetch-happen/node_modules/minipass Completed in 0ms
243 timing idealTree:node_modules/minipass-collect/node_modules/minipass Completed in 0ms
244 timing idealTree:node_modules/minipass-fetch/node_modules/minipass Completed in 0ms
245 timing idealTree:node_modules/minipass-flush/node_modules/minipass Completed in 0ms
246 timing idealTree:node_modules/minipass-pipeline/node_modules/minipass Completed in 0ms
247 timing idealTree:node_modules/minipass-sized/node_modules/minipass Completed in 0ms
248 silly placeDep node_modules/node-gyp are-we-there-yet@3.0.1 OK for: npmlog@6.0.2 want: ^3.0.0
249 silly placeDep node_modules/node-gyp gauge@4.0.4 OK for: npmlog@6.0.2 want: ^4.0.3
250 silly fetch manifest strip-ansi@^6.0.1
251 http fetch GET 200 https://registry.npmjs.org/strip-ansi 71ms (cache revalidated)
252 timing idealTree:node_modules/node-gyp/node_modules/npmlog Completed in 74ms
253 timing idealTree:node_modules/node-gyp/node_modules/are-we-there-yet Completed in 0ms
254 silly placeDep node_modules/node-gyp strip-ansi@6.0.1 OK for: gauge@4.0.4 want: ^6.0.1
255 silly fetch manifest ansi-regex@^5.0.1
256 http fetch GET 200 https://registry.npmjs.org/ansi-regex 58ms (cache revalidated)
257 timing idealTree:node_modules/node-gyp/node_modules/gauge Completed in 61ms
258 silly placeDep node_modules/node-gyp ansi-regex@5.0.1 OK for: strip-ansi@6.0.1 want: ^5.0.1
259 timing idealTree:node_modules/node-gyp/node_modules/strip-ansi Completed in 1ms
260 timing idealTree:node_modules/node-gyp/node_modules/ansi-regex Completed in 0ms
261 timing idealTree:node_modules/ssri/node_modules/minipass Completed in 0ms
262 timing idealTree:buildDeps Completed in 1616ms
263 timing idealTree:fixDepFlags Completed in 1ms
264 timing idealTree Completed in 1657ms
265 timing reify:loadTrees Completed in 1658ms
266 timing reify:diffTrees Completed in 3ms
267 silly reify mark retired [
267 silly reify   'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\fixing.npmrc'
267 silly reify ]
268 silly reify moves {
268 silly reify   'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\fixing.npmrc': 'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\.fixing.npmrc-add16CCc'
268 silly reify }
269 timing reify:retireShallow Completed in 2ms
270 timing reify:createSparse Completed in 35ms
271 timing reify:loadBundles Completed in 0ms
272 silly audit bulk request {
272 silly audit   '@mapbox/node-pre-gyp': [ '1.0.10' ],
272 silly audit   abbrev: [ '1.1.1' ],
272 silly audit   'agent-base': [ '6.0.2' ],
272 silly audit   'ansi-regex': [ '4.1.1', '5.0.1' ],
272 silly audit   aproba: [ '2.0.0' ],
272 silly audit   'are-we-there-yet': [ '2.0.0', '3.0.1' ],
272 silly audit   'balanced-match': [ '1.0.2' ],
272 silly audit   'brace-expansion': [ '1.1.11' ],
272 silly audit   chownr: [ '2.0.0' ],
272 silly audit   'color-support': [ '1.1.3' ],
272 silly audit   'concat-map': [ '0.0.1' ],
272 silly audit   'console-control-strings': [ '1.1.0' ],
272 silly audit   debug: [ '4.3.4' ],
272 silly audit   delegates: [ '1.0.0' ],
272 silly audit   'detect-libc': [ '2.0.1' ],
272 silly audit   'emoji-regex': [ '8.0.0' ],
272 silly audit   fs: [ '0.0.1-security' ],
272 silly audit   'fs-minipass': [ '2.1.0' ],
272 silly audit   minipass: [ '3.3.6', '5.0.0' ],
272 silly audit   'fs.realpath': [ '1.0.0' ],
272 silly audit   gauge: [ '3.0.2', '4.0.4' ],
272 silly audit   'strip-ansi': [ '6.0.1', '5.2.0' ],
272 silly audit   glob: [ '7.2.3' ],
272 silly audit   'has-unicode': [ '2.0.1' ],
272 silly audit   'https-proxy-agent': [ '5.0.1' ],
272 silly audit   inflight: [ '1.0.6' ],
272 silly audit   inherits: [ '2.0.4' ],
272 silly audit   'is-fullwidth-code-point': [ '3.0.0' ],
272 silly audit   'lru-cache': [ '6.0.0' ],
272 silly audit   'make-dir': [ '3.1.0' ],
272 silly audit   semver: [ '6.3.0', '7.5.1' ],
272 silly audit   minimatch: [ '3.1.2' ],
272 silly audit   minizlib: [ '2.1.2' ],
272 silly audit   mkdirp: [ '1.0.4' ],
272 silly audit   ms: [ '2.1.2' ],
272 silly audit   'node-fetch': [ '2.6.11' ],
272 silly audit   nopt: [ '5.0.0' ],
272 silly audit   npmlog: [ '5.0.1', '6.0.2' ],
272 silly audit   'object-assign': [ '4.1.1' ],
272 silly audit   once: [ '1.4.0' ],
272 silly audit   'path-is-absolute': [ '1.0.1' ],
272 silly audit   'prompt-sync': [ '4.2.0' ],
272 silly audit   'readable-stream': [ '3.6.2' ],
272 silly audit   rimraf: [ '3.0.2' ],
272 silly audit   'safe-buffer': [ '5.2.1' ],
272 silly audit   'set-blocking': [ '2.0.0' ],
272 silly audit   'signal-exit': [ '3.0.7' ],
272 silly audit   sqlite: [ '4.2.1' ],
272 silly audit   string_decoder: [ '1.3.0' ],
272 silly audit   'string-width': [ '4.2.3' ],
272 silly audit   tar: [ '6.1.15' ],
272 silly audit   tr46: [ '0.0.3' ],
272 silly audit   'util-deprecate': [ '1.0.2' ],
272 silly audit   'webidl-conversions': [ '3.0.1' ],
272 silly audit   'whatwg-url': [ '5.0.0' ],
272 silly audit   'wide-align': [ '1.1.5' ],
272 silly audit   wrappy: [ '1.0.2' ],
272 silly audit   yallist: [ '4.0.0' ],
272 silly audit   sqlite3: [ '5.1.6' ],
272 silly audit   'node-addon-api': [ '4.3.0' ],
272 silly audit   'node-gyp': [ '8.4.1' ],
272 silly audit   'env-paths': [ '2.2.1' ],
272 silly audit   'graceful-fs': [ '4.2.11' ],
272 silly audit   'make-fetch-happen': [ '9.1.0' ],
272 silly audit   which: [ '2.0.2' ],
272 silly audit   agentkeepalive: [ '4.3.0' ],
272 silly audit   cacache: [ '15.3.0' ],
272 silly audit   'http-cache-semantics': [ '4.1.1' ],
272 silly audit   'http-proxy-agent': [ '4.0.1' ],
272 silly audit   'is-lambda': [ '1.0.1' ],
272 silly audit   'minipass-collect': [ '1.0.2' ],
272 silly audit   'minipass-fetch': [ '1.4.1' ],
272 silly audit   'minipass-flush': [ '1.0.5' ],
272 silly audit   'minipass-pipeline': [ '1.2.4' ],
272 silly audit   negotiator: [ '0.6.3' ],
272 silly audit   'promise-retry': [ '2.0.1' ],
272 silly audit   'socks-proxy-agent': [ '6.2.1' ],
272 silly audit   ssri: [ '8.0.1' ],
272 silly audit   depd: [ '2.0.0' ],
272 silly audit   'humanize-ms': [ '1.2.1' ],
272 silly audit   '@npmcli/fs': [ '1.1.1' ],
272 silly audit   '@npmcli/move-file': [ '1.1.2' ],
272 silly audit   'infer-owner': [ '1.0.4' ],
272 silly audit   'p-map': [ '4.0.0' ],
272 silly audit   'promise-inflight': [ '1.0.1' ],
272 silly audit   'unique-filename': [ '1.1.1' ],
272 silly audit   '@gar/promisify': [ '1.1.3' ],
272 silly audit   '@tootallnate/once': [ '1.1.2' ],
272 silly audit   encoding: [ '0.1.13' ],
272 silly audit   'minipass-sized': [ '1.0.3' ],
272 silly audit   'iconv-lite': [ '0.6.3' ],
272 silly audit   'safer-buffer': [ '2.1.2' ],
272 silly audit   'aggregate-error': [ '3.1.0' ],
272 silly audit   'clean-stack': [ '2.2.0' ],
272 silly audit   'indent-string': [ '4.0.0' ],
272 silly audit   'err-code': [ '2.0.3' ],
272 silly audit   retry: [ '0.12.0' ],
272 silly audit   socks: [ '2.7.1' ],
272 silly audit   ip: [ '2.0.0' ],
272 silly audit   'smart-buffer': [ '4.2.0' ],
272 silly audit   'unique-slug': [ '2.0.2' ],
272 silly audit   imurmurhash: [ '0.1.4' ],
272 silly audit   isexe: [ '2.0.0' ]
272 silly audit }
273 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 161ms
274 timing auditReport:getReport Completed in 163ms
275 silly audit report {}
276 timing auditReport:init Completed in 0ms
277 timing reify:audit Completed in 164ms
278 timing reifyNode:node_modules/ip Completed in 247ms
279 timing reifyNode:node_modules/imurmurhash Completed in 287ms
280 timing reifyNode:node_modules/promise-inflight Completed in 286ms
281 warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
282 timing reifyNode:node_modules/@npmcli/move-file Completed in 290ms
283 timing reifyNode:node_modules/@gar/promisify Completed in 290ms
284 timing reifyNode:node_modules/infer-owner Completed in 290ms
285 timing reifyNode:node_modules/minipass-collect Completed in 290ms
286 timing reifyNode:node_modules/minipass-flush Completed in 292ms
287 timing reifyNode:node_modules/minipass-pipeline Completed in 296ms
288 timing reifyNode:node_modules/@tootallnate/once Completed in 308ms
289 timing reifyNode:node_modules/http-cache-semantics Completed in 335ms
290 timing reifyNode:node_modules/indent-string Completed in 366ms
291 timing reifyNode:node_modules/clean-stack Completed in 366ms
292 timing reifyNode:node_modules/humanize-ms Completed in 366ms
293 timing reifyNode:node_modules/aggregate-error Completed in 366ms
294 timing reifyNode:node_modules/node-gyp/node_modules/npmlog Completed in 366ms
295 timing reifyNode:node_modules/p-map Completed in 367ms
296 timing reifyNode:node_modules/node-gyp/node_modules/ansi-regex Completed in 366ms
297 timing reifyNode:node_modules/env-paths Completed in 366ms
298 timing reifyNode:node_modules/node-gyp/node_modules/strip-ansi Completed in 367ms
299 timing reifyNode:node_modules/ssri Completed in 370ms
300 timing reifyNode:node_modules/socks-proxy-agent Completed in 371ms
301 timing reifyNode:node_modules/ssri/node_modules/minipass Completed in 378ms
302 timing reifyNode:node_modules/minipass-sized/node_modules/minipass Completed in 378ms
303 timing reifyNode:node_modules/minipass-flush/node_modules/minipass Completed in 380ms
304 timing reifyNode:node_modules/minipass-collect/node_modules/minipass Completed in 380ms
305 timing reifyNode:node_modules/cacache/node_modules/minipass Completed in 384ms
306 timing reifyNode:node_modules/minipass-pipeline/node_modules/minipass Completed in 387ms
307 timing reifyNode:node_modules/minipass-fetch/node_modules/minipass Completed in 387ms
308 timing reifyNode:node_modules/unique-slug Completed in 390ms
309 timing reifyNode:node_modules/which Completed in 395ms
310 timing reifyNode:node_modules/make-fetch-happen/node_modules/minipass Completed in 406ms
311 timing reifyNode:node_modules/depd Completed in 407ms
312 timing reifyNode:node_modules/is-lambda Completed in 409ms
313 timing reifyNode:node_modules/graceful-fs Completed in 420ms
314 timing reifyNode:node_modules/encoding Completed in 429ms
315 timing reifyNode:node_modules/safer-buffer Completed in 430ms
316 timing reifyNode:node_modules/isexe Completed in 449ms
317 timing reifyNode:node_modules/promise-retry Completed in 452ms
318 timing reifyNode:node_modules/node-gyp/node_modules/are-we-there-yet Completed in 454ms
319 timing reifyNode:node_modules/http-proxy-agent Completed in 458ms
320 timing reifyNode:node_modules/minipass-sized Completed in 474ms
321 timing reifyNode:node_modules/negotiator Completed in 482ms
322 timing reifyNode:node_modules/err-code Completed in 485ms
323 timing reifyNode:node_modules/agentkeepalive Completed in 530ms
324 timing reifyNode:node_modules/minipass-fetch Completed in 533ms
325 timing reifyNode:node_modules/make-fetch-happen Completed in 608ms
326 timing reifyNode:node_modules/smart-buffer Completed in 629ms
327 timing reifyNode:node_modules/unique-filename Completed in 640ms
328 timing reifyNode:node_modules/retry Completed in 644ms
329 timing reifyNode:node_modules/node-gyp/node_modules/gauge Completed in 650ms
330 timing reifyNode:node_modules/cacache Completed in 660ms
331 timing reifyNode:node_modules/@npmcli/fs Completed in 670ms
332 timing reifyNode:node_modules/node-addon-api Completed in 685ms
333 timing reifyNode:node_modules/socks Completed in 701ms
334 timing reifyNode:node_modules/sqlite3 Completed in 706ms
335 timing reifyNode:node_modules/iconv-lite Completed in 709ms
336 timing reifyNode:node_modules/node-gyp Completed in 1016ms
337 timing reify:unpack Completed in 1018ms
338 timing reify:unretire Completed in 0ms
339 timing build:queue Completed in 2ms
340 timing build:link:node_modules/node-gyp Completed in 5ms
341 timing build:link:node_modules/which Completed in 5ms
342 timing build:link Completed in 5ms
343 info run sqlite3@5.1.6 install node_modules/sqlite3 node-pre-gyp install --fallback-to-build
344 info run sqlite3@5.1.6 install { code: 1, signal: null }
345 warn cleanup Failed to remove some directories [
345 warn cleanup   [
345 warn cleanup     'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\@npmcli',
345 warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project\node_modules\@npmcli\fs\lib'] {
345 warn cleanup       errno: -4048,
345 warn cleanup       code: 'EPERM',
345 warn cleanup       syscall: 'rmdir',
345 warn cleanup       path: 'C:\\Users\\nickc\\Desktop\\Code & Program Projects\\JavaScript\\JavaScript - Fundamentals\\Section #9 - Modules\\Multi-file JS Project\\node_modules\\@npmcli\\fs\\lib'
345 warn cleanup     }
345 warn cleanup   ]
345 warn cleanup ]
346 timing reify:rollback:createSparse Completed in 106ms
347 timing reify:rollback:retireShallow Completed in 2ms
348 timing command:install Completed in 2929ms
349 verbose stack Error: command failed
349 verbose stack     at ChildProcess.<anonymous> (C:\Users\nickc\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:53:27)
349 verbose stack     at ChildProcess.emit (node:events:513:28)
349 verbose stack     at maybeClose (node:internal/child_process:1091:16)
349 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
350 verbose pkgid sqlite3@5.1.6
351 verbose cwd C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project
352 verbose Windows_NT 10.0.22621
353 verbose node v18.15.0
354 verbose npm  v9.6.7
355 error code 1
356 error path C:\Users\nickc\Desktop\Code & Program Projects\JavaScript\JavaScript - Fundamentals\Section #9 - Modules\Multi-file JS Project\node_modules\sqlite3
357 error command failed
358 error command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
359 error 'Program' is not recognized as an internal or external command,
359 error operable program or batch file.
359 error node:internal/modules/cjs/loader:1078
359 error   throw err;
359 error   ^
359 error
359 error Error: Cannot find module 'C:\Users\nickc\Desktop\@mapbox\node-pre-gyp\bin\node-pre-gyp'
359 error     at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
359 error     at Module._load (node:internal/modules/cjs/loader:920:27)
359 error     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
359 error     at node:internal/main/run_main_module:23:47 {
359 error   code: 'MODULE_NOT_FOUND',
359 error   requireStack: []
359 error }
359 error
359 error Node.js v18.15.0
360 verbose exit 1
361 timing npm Completed in 3310ms
362 verbose unfinished npm timer reify 1685550911525
363 verbose unfinished npm timer reify:build 1685550914251
364 verbose unfinished npm timer build 1685550914252
365 verbose unfinished npm timer build:deps 1685550914252
366 verbose unfinished npm timer build:run:install 1685550914259
367 verbose unfinished npm timer build:run:install:node_modules/sqlite3 1685550914259
368 verbose code 1
369 error A complete log of this run can be found in: C:\Users\nickc\AppData\Local\npm-cache\_logs\2023-05-31T16_35_11_152Z-debug-0.log

Version

Not entirely sure, I'm running "npm install sqlite3 --save"

Node.js Version

18.15.0

How did you install the library?

I'm using Windows, I tried installing through the terminal in VSCode. By using 'npm'.

Please try reinstalling, we've made some changes to the prebuilt binaries and you should hopefully have a smoother experience now