#11415·NativeScript

Error typing the 'ns device' command

Author: Robson96Created Sep 4, 2026Updated Sep 4, 2026
Labelsbug-pending-triage

Issue Description

I went to check if it was actually recognizing my physical device.

The command generates an error, but when I run the adb devices command, it returns the expected output.

Error: spawn C:\Users\robso\AppData\Roaming\nvm\v24.11.1\node_modules\nativescript\node_modules\ios-device-lib\bin\win32\x64\ios-device-lib ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)

Reproduction

PS C:\Users\robso> ns doctor android
⠸ Getting environment information
(node:32776) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
✔ Getting environment information

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 9.1.1 version and is up to date.
PS C:\Users\robso\Documents\TotalCompras> ns device
Searching for devices...
Error: spawn C:\Users\robso\AppData\Roaming\nvm\v24.11.1\node_modules\nativescript\node_modules\ios-device-lib\bin\win32\x64\ios-device-lib ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)
PS C:\Users\robso\Documents\TotalCompras> adb devices
List of devices attached
RX8X9015P1N     device

PS C:\Users\robso\Documents\TotalCompras> ns --version
9.1.1
✔ Up to date.
PS C:\Users\robso\Documents\TotalCompras>

Relevant log output (if applicable)

bash

Environment

yaml
OS: Windows 11 10.0.26200
CPU: (8) x64 AMD Ryzen 5 7520U with Radeon Graphics
Shell: Not Found
node: 24.11.1
npm: 11.19.1
nativescript: Not Found

# android
java: Not Found
ndk: Not Found
apis: 23, 27, 28, 34, 35, 36, 36
build_tools: 30.0.3, 33.0.1, 34.0.0, 35.0.0, 35.0.1, 36.0.0
system_images:
  - android-23 | Google APIs Intel x86 Atom
  - android-27 | Google Play Intel x86 Atom
  - android-28 | Google Play Intel x86 Atom
  - android-31 | Google Play Intel x86_64 Atom
  - android-33 | Google Play Intel x86_64 Atom
  - android-34 | Google Play Intel x86_64 Atom
  - android-37.0 | 16 KB Page Size Google Play Intel x86_64 Atom

# ios
xcode: Not Found
cocoapods: Not Found
python: Not Found
python3: Not Found
ruby: Not Found
platforms: Not Found

Dependencies

json
"dependencies": {
  "@nativescript/core": "~9.1.0",
  "@nativescript/theme": "^3.1.0"
},
"devDependencies": {
  "@nativescript/webpack": "~5.0.25"
}

Please accept these terms

Source: NativeScript/NativeScript