Giter Club home page Giter Club logo

Comments (3)

msaigla avatar msaigla commented on July 16, 2024

I have solved the problem.
It helped:
npm remove noble --verbose
npm remove noble-winrt --verbose

but now it does not connect to the ports

from espruinotools.

gfwilliams avatar gfwilliams commented on July 16, 2024

Ok, thanks ofr the update. Yes, noble handles the Bluetooth comms - you may have some success trying to make it use noble-uwp instead?

from espruinotools.

msaigla avatar msaigla commented on July 16, 2024

It don't work

.\dist\espruino-win.exe --list --verbose
0.1.55
Espruino Command-line Tool 0.1.55
-----------------------------------

Acorn library not found - you'll need it for compiled code
Found C:\snapshot\evolvector_studio\other_files\espruino/libs/targz.js
Found C:\snapshot\evolvector_studio\other_files\espruino/libs/utf8.js
Found C:\snapshot\evolvector_studio\other_files\espruino/libs/webrtc-connection.js
Found C:\snapshot\evolvector_studio\other_files\espruino/libs/esprima/escodegen.js
Found C:\snapshot\evolvector_studio\other_files\espruino/libs/esprima/esmangle.js
Found C:\snapshot\evolvector_studio\other_files\espruino/libs/esprima/esprima.js
Found C:\snapshot\evolvector_studio\other_files\espruino/espruino.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/codeWriter.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/config.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/env.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/flasher.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/flasherESP8266.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/modules.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/notifications.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_chrome_serial.js
No chrome.serial - Chrome Serial disabled
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_chrome_socket.js
No chrome.sockets - Chrome Socket disabled
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_frame.js
serial_frame: Not running in a browser
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_noble.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_node_serial.js
Error initialising 'serialport':Error: No native build was found for platform=win32 arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.16.0
    loaded from: C:\snapshot\evolvector_studio\other_files\espruino\node_modules\@serialport\bindings-cpp

Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_node_socket.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_webrtc.js
Remote Connection enabled
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_websocket_local.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_websocket_relay.js
WebSocket relay support enabled
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_web_audio.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_web_bluetooth.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/serial_web_serial.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/terminal.js
Found C:\snapshot\evolvector_studio\other_files\espruino/core/utils.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/assembler.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/boardJSON.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/compiler.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/getGitHub.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/localModules.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/minify.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/pretokenise.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/saveOnSend.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/setTime.js
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/unicode.js
UTF8 Library loaded successfully
Found C:\snapshot\evolvector_studio\other_files\espruino/plugins/versionChecker.js
Initialising CodeWriter
Initialising Config
Initialising Env
Initialising Flasher
Initialising FlasherESP8266
Initialising Modules
Initialising Notifications
Initialising Serial
  - Initialising Serial Noble Bluetooth LE
  - Initialising Serial Node Socket
  - Initialising Serial Remote Connection
  - Initialising Serial Websocket Relay
  - Initialising Serial Web Audio
  - Initialising Serial Web Bluetooth
  - Initialising Serial Web Serial
Initialising RemoteConnection
Initialising SerialWebSocketRelay
Initialising Utils
Initialising Status
Initialising Assembler
Initialising BoardJSON
Initialising Compiler
Initialising GetGitHub
Initialising LocalModules
Initialising Minify
Initialising Unicode
Initialising VersionChecker
Initialising CoreModules
Initialising Pretokenise
Initialising SaveOnSend
Initialising SetTime
Searching for serial ports...
Noble: getPorts - initialising...
Noble: module couldn't be loaded, no node.js Bluetooth Low Energy
 Error: No native build was found for platform=win32 arch=x64 runtime=node abi=93 uv=1 libc=glibc node=16.16.0
    loaded from: C:\snapshot\evolvector_studio\other_files\espruino\node_modules\bluetooth-hci-socket\node_modules\usb

    at Function.<anonymous> (C:\snapshot\evolvector_studio\other_files\espruino\node_modules\node-gyp-build\node-gyp-build.js:60:9)
    at load (C:\snapshot\evolvector_studio\other_files\espruino\node_modules\node-gyp-build\node-gyp-build.js:22:30)
    at Object.<anonymous> (C:\snapshot\evolvector_studio\other_files\espruino\node_modules\bluetooth-hci-socket\node_modules\usb\usb.js:1:125)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at Module.require (pkg/prelude/bootstrap.js:1851:31)
    at require (node:internal/modules/cjs/helpers:102:18)
Error: No Ports Found

It do work

PS C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino> node bin\espruino-cli.js --list --verbose
0.1.55
Espruino Command-line Tool 0.1.55
-----------------------------------

Acorn library not found - you'll need it for compiled code
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/libs/targz.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/libs/utf8.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/libs/webrtc-connection.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/libs/esprima/escodegen.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/libs/esprima/esmangle.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/libs/esprima/esprima.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/espruino.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/codeWriter.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/config.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/env.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/flasher.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/flasherESP8266.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/modules.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/notifications.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_chrome_serial.js
No chrome.serial - Chrome Serial disabled
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_chrome_socket.js
No chrome.sockets - Chrome Socket disabled
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_frame.js
serial_frame: Not running in a browser
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_noble.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_node_serial.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_node_socket.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_webrtc.js
Remote Connection enabled
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_websocket_local.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_websocket_relay.js
WebSocket relay support enabled
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_web_audio.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_web_bluetooth.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/serial_web_serial.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/terminal.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/core/utils.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/assembler.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/boardJSON.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/compiler.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/getGitHub.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/localModules.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/minify.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/pretokenise.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/saveOnSend.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/setTime.js
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/unicode.js
UTF8 Library loaded successfully
Found C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino/plugins/versionChecker.js
Initialising CodeWriter
Initialising Config
Initialising Env
Initialising Flasher
Initialising FlasherESP8266
Initialising Modules
Initialising Notifications
Initialising Serial
  - Initialising Serial Noble Bluetooth LE
  - Initialising Serial Node Serial
  - Initialising Serial Node Socket
  - Initialising Serial Remote Connection
  - Initialising Serial Websocket Relay
  - Initialising Serial Web Audio
  - Initialising Serial Web Bluetooth
  - Initialising Serial Web Serial
Initialising RemoteConnection
Initialising SerialWebSocketRelay
Initialising Utils
Initialising Status
Initialising Assembler
Initialising BoardJSON
Initialising Compiler
Initialising GetGitHub
Initialising LocalModules
Initialising Minify
Initialising Unicode
Initialising VersionChecker
Initialising CoreModules
Initialising Pretokenise
Initialising SaveOnSend
Initialising SetTime
Searching for serial ports...
Noble: getPorts - initialising...
(node:9336) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\msaig\Desktop\progres\evolvector\studio\evolvector_studio\other_files\espruino\node_modules\node-blob\package.json' of 'server.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
PORTS:
  COM6  (STMicroelectronics.)
Noble: stateChange -> poweredOff
Noble: getPorts - initialising...
Noble: getPorts - initialising...
Noble: getPorts - initialising...
Noble: getPorts - initialising...
Noble: getPorts - initialising...
Noble: getPorts - initialising...

from espruinotools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.