Open toohandsome opened 6 months ago
I konw it's why , node version need 18+; but document is require16+.... i update node version to 20, it's solved. but i have a new problem.
PS F:\esp32> node_modules\.bin\devicescript.cmd flash --board esp32c3_bare --refresh --install
using devs: v2.15.23, runtime: v2.15.23, node: v20.10.0 from F:\esp32\node_modules\@devicescript\cli\built
using serial port COM3 at 1500000
esptool: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.11_env\Scripts\esptool.py
fetch https://github.com/microsoft/devicescript-esp32/releases/latest/download/devicescript-esp32c3-esp32c3_bare-0x0.bin
saved .devicescript/cache/devicescript-esp32c3-esp32c3_bare-0x0.bin 1282048 bytes
run: C:\Users\Administrator\.espressif\python_env\idf5.1_py3.11_env\Scripts\esptool.py --port COM3 --baud 1500000 write_flash 0x0 .devicescript/cache/devicescript-esp32c3-esp32c3_bare-0x0.bin
node:internal/errors:563
ErrorCaptureStackTrace(err);
^
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:761:9)
at F:\esp32\node_modules\@devicescript\cli\built\devicescript-cli.cjs:490903:49
at new Promise (<anonymous>)
at runTool (F:\esp32\node_modules\@devicescript\cli\built\devicescript-cli.cjs:490895:10)
at runEsptool (F:\esp32\node_modules\@devicescript\cli\built\devicescript-cli.cjs:490803:23)
at flashESP32 (F:\esp32\node_modules\@devicescript\cli\built\devicescript-cli.cjs:490745:28) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Node.js v20.10.0
I've pushed a new version (2.16.0) that should require node v20+.
Do you have esptool installed (see https://microsoft.github.io/devicescript/devices/esp32#requirements )?
I've pushed a new version (2.16.0) that should require node v20+.
Do you have esptool installed (see https://microsoft.github.io/devicescript/devices/esp32#requirements )?
yes , I have installed esptool
it seems that we are launching esptool.py
instead of esptool
. were you able to flash manually?
Describe the issue
when i select flash , it will show a error
Environment
vscode: 1.85.1 extension: 2.15.23 devsVersion: v2.15.23 runtimeVersion: v2.15.23 nodeVersion: v16.17.0
Sources
setInterval(async () => { console.log(":)") }, 1000)