Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem #923

Open
DilemmaGX opened this issue Apr 22, 2024 · 6 comments
Open

Installation problem #923

DilemmaGX opened this issue Apr 22, 2024 · 6 comments

Comments

@DilemmaGX
Copy link

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):

> [email protected] 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

image

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
@GarboMuffin
Copy link
Member

Do you live in China? Scratch is blocked there, I guess that includes downloads.scratch.mit.edu too

We can mirror that on our own servers instead if that's the case

@GarboMuffin
Copy link
Member

Even if you get it to run it may not be very useful without being able to access Scratch APIs

If you're not in China then ChatGPT's "check you connection" is probably as much help as I can provide

@GarboMuffin
Copy link
Member

If you pull again we're hosting that file on our own servers now so maybe it'll work better

@DilemmaGX
Copy link
Author

I live in China right now. I managed to download the zip in the browser and manually ctrl c ctrl v it to the generated folder. I'm not that sure if it's something with the internet connection, since I used a vpn which can allow me to access to scratch.mit sites.

@GarboMuffin GarboMuffin reopened this Jun 21, 2024
@GarboMuffin
Copy link
Member

This has happened a couple times to me too now, problem is that npm is firing off so much network traffic while we try to do that download and we end up timing out if the network isn't fast enough

@CubesterYT
Copy link

Dilemma, don't close this issue, as it's still an active problem

@GarboMuffin GarboMuffin reopened this Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants