You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup an old Photon that I had lying around, but I can't even get basic things to work with the CLI. I tried installing the CLI both via the installer and via node package. I have installed the other dependencies such as DFU-util. I have node version 14.20.1 and npm 9.5.1.
For example when I run "particle upgrade", it crashes with what looks like a node error:
I'm not sure how reproducible this will be for everyone out there, but I think just trying to install particle cli on ubuntu 22.04 and running "particle update" may be enough. If not maybe also having node version 14.20.1 and npm 9.5.1
Expected result
Update runs fine
Actual result
Crash
Environment
Tell us about your setup:
OS: Ubuntu 22.04.2
Node (run node -v): 14.20.1
NPM (run npm -v): 9.5.1
Particle CLI (run particle version): 3.7.0
The text was updated successfully, but these errors were encountered:
I'm not sure if you're still struggling with this, but using the latest version of Node (v18), running particle usb configure to install the udev rules, and then restarting the udev daemon with udevadm control -R resolved this issue for me.
Seems like the particle-cli just couldn't find the device causing the crash.
Description
I'm trying to setup an old Photon that I had lying around, but I can't even get basic things to work with the CLI. I tried installing the CLI both via the installer and via node package. I have installed the other dependencies such as DFU-util. I have node version 14.20.1 and npm 9.5.1.
For example when I run "particle upgrade", it crashes with what looks like a node error:
node[15415]: ../src/node_api.cc:1286:napi_status napi_release_threadsafe_function(napi_threadsafe_function, napi_threadsafe_function_release_mode): Assertion `(func) != nullptr' failed.
1: 0xa3ac10 node::Abort() [node]
2: 0xa3ac8e [node]
3: 0xa09f8a napi_release_threadsafe_function [node]
4: 0x7f08ea8c7db6 Device::Close(Napi::CallbackInfo const&) [/usr/local/lib/node_modules/particle-cli/node_modules/usb/build/Release/usb_bindings.node]
5: 0x7f08ea8cddf3 Napi::InstanceWrap::InstanceMethodCallbackWrapper(napi_env__, napi_callback_info__) [/usr/local/lib/node_modules/particle-cli/node_modules/usb/build/Release/usb_bindings.node]
6: 0x9eaa8d [node]
7: 0xc2645b [node]
8: 0xc27a06 [node]
9: 0xc28086 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [node]
10: 0x1449079 [node]
Aborted (core dumped)
Steps to reproduce
I'm not sure how reproducible this will be for everyone out there, but I think just trying to install particle cli on ubuntu 22.04 and running "particle update" may be enough. If not maybe also having node version 14.20.1 and npm 9.5.1
Expected result
Update runs fine
Actual result
Crash
Environment
Tell us about your setup:
node -v
): 14.20.1npm -v
): 9.5.1particle version
): 3.7.0The text was updated successfully, but these errors were encountered: