-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
When I npm install scratch-gui, request to https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zip failed #9012
Comments
Is the problem solved?I'm having the same issue. |
Please Download This : https://download.scratch.mit.edu/microbit/scratch-microbit.hex.zip |
I also encountered this issue in China and cannot open this address. How to solve it, thank you |
if Browser download, please use this link:if browser download |
Guys, Greetings from China, Here are the steps:
|
thanks, i do it and solve the problem |
牛 |
@JiafengLiao thanks! |
excellent solution! |
上边的朋友说得对,遇到这个问题的基本都是中国的,翻墙软件似乎并不能让npm翻墙 |
按照上面给出的方案,可以正常运行成功;但是我在运行 npm start 启动的时候,报错: |
是完全按照步骤来的吗?看起来像是路径问题 |
@Applewan generated/microbit-hex-url.cjs |
还是没有解决,该怎么办 |
最后您是怎么解决的 |
报错是啥 |
Hello! May I ask how you can solve this problem. |
looks like the path is not correctly set. For those who encountered "Can't resolve '****/microbit-hex-url.cjs'" problem. Please check your code in 'scripts\prepublish.mjs' with the code snippet I post. And check if microbit-hex-url.cjs stored in the path 'src/generate/' |
module.exports = require('./....\static\microbit\scratch-microbit-1.2.0.hex'); |
是否有高端一点的解法,scratch-desktop也报该问题,却没有相关的script去修改。 我本人有梯子,且设置了命令行代理(设置了http_proxy https_proxy all_proxy),能够通过wget https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zip 下载到该文件。 但是,执行npm install 的时候依然报错,真是日了狗了。 |
@wudaochen Hello, I met the same error with yours. May I know have you addressed it? |
|
This isn't a great solution, I'd love some help with this. |
解决了吗兄弟?解决了给我说下,我也是这个问题 到desktop就这个错误 |
@XESDog 解决了吗? |
这样修改可以: |
There is no generated folder in my directory, and I couldn't find any microbit-hex-url.cjs file.Where should I write "module.exports = require('./../../static/microbit/scratch-microbit-1.2.0.hex');"? |
I know how to console this problem. |
yes, you are right, cool |
已解决,多谢
发自我的iPhone
…------------------ Original ------------------
From: 定位大师 ***@***.***>
Date: Mon,Sep 23,2024 3:48 PM
To: scratchfoundation/scratch-gui ***@***.***>
Cc: Applewan ***@***.***>, Mention ***@***.***>
Subject: Re: [scratchfoundation/scratch-gui] When I npm install scratch-gui,request to https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zipfailed (Issue #9012)
@XESDog 解决了吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
谢!终于搞定! |
Downloading https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zip
FetchError: request to https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zip failed, reason: connect ETIMEDOUT 162.125.32.10:443
at ClientRequest. (D:\lxj\myelectron\scratch\scratch-gui\node_modules\cross-fetch\node_modules\node-fetch\lib\index.js:1491:11)
at ClientRequest.emit (node:events:369:20)
at TLSSocket.socketErrorListener (node:_http_client:472:9)
at TLSSocket.emit (node:events:369:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:81:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT'
}
npm ERR! code 1
npm ERR! path D:\lxj\myelectron\scratch\scratch-gui
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/prepublish.mjs
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lxj\AppData\Local\npm-cache_logs\2023-06-20T08_28_43_088Z-debug.log
The text was updated successfully, but these errors were encountered: