Description
I don't think this is something wrong with the code, but I think the documentations might need to include some common troubleshooting.
btw, I do not have any connection problems. I tried running the followings with vpn on and vpn off.
Expected Behavior
Run npm ci
and automatically install all the stuff needed.
Actual Behavior
Stucks on executing prepublish.js
I tried entering the link directly via Edge, it works fine and can download instantly. I also tried configuring trusted domains
, execute via cmd.exe instead of vscode.
I also tried to feed the error information to ChatGPT but it just responds with "check you connection" and something like that.
The final error looks like this (I didn't found any sussy errors or warnings in the .log
file):
> scratch-gui@3.2.37 prepublish
FetchError: request to https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zip failed, reason:
at ClientRequest.<anonymous> (D:\Github\scratch-gui\node_modules\node-fetch\lib\index.js:1491:11)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:500:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT'
}
npm ERR! code 1
npm ERR! path D:\Github\scratch-gui
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/prepublish.mjs
Steps to Reproduce
Run npm ci
(or commands like cnpm ci
). It occures before and after I re-installed Windows.
Operating System and Browser
Windows 11 23H2 Windows Feature Experience Pack 1000.22688.1000.0
npm -v
10.5.0
node -v
v20.12.0