Can't run new project with vue-cli


I have created new project with nativescript vue cli, installed all dependencies and android requirements, tns doctor says that everything is fine, however I am not able to run project with command npm run watch:android

$ npm run watch:android

> mobile@1.0.0 watch:android D:\mobile
> npm run watch --

> mobile@1.0.0 watch D:\mobile
> webpack --watch --env.tnsAction run ""

info: Copying NativeScript plugins to template dependencies...
info: Preparing NativeScript application from template...
npm WARN mobile@ No repository field.

info: Bundling application for android...

Webpack is watching the files…

Executing post-build scripts
info: Running NativeScript application...
Searching for devices...
Starting Android emulator with image Nexus_5X_API_28
error: uncaughtException: Command failed: node launch.js run android
 date=Tue Jul 03 2018 13:45:47 GMT+0200 (Środkowoeuropejski czas letni), pid=11176, uid=null, gid=null, cwd=D:\mobile, execPath=C:\Program Files\nodejs\node.exe, version=v8.11.3, argv=[C:\Program Files\nodejs\node.exe, D:\mobile\node_modules\webpack\bin\webpack.js, --watch, --env.tnsAction, run,], rss=98672640, heapTotal=76562432, heapUsed=64713632, external=440499, loadavg=[0, 0, 0], uptime=46872.6508389, trace=[column=12, file=child_process.js, function=ChildProcess.exithandler, line=275, method=exithandler, native=false, column=13, file=events.js, function=emitTwo, line=126, method=null, native=false, column=7, file=events.js, function=ChildProcess.emit, line=214, method=emit, native=false, column=16, file=internal/child_process.js, function=maybeClose, line=925, method=null, native=false, column=11, file=internal/child_process.js,, line=346, method=on, native=false, column=13, file=events.js, function=emitOne, line=116, method=null, native=false, column=7, file=events.js, function=Socket.emit, line=211, method=emit, native=false, column=12, file=net.js, function=Pipe._handle.close [as _onclose], line=557, method=close [as _onclose], native=false], stack=[Error: Command failed: node launch.js run android, ,     at ChildProcess.exithandler (child_process.js:275:12),     at emitTwo (events.js:126:13),     at ChildProcess.emit (events.js:214:7),     at maybeClose (internal/child_process.js:925:16),     at (internal/child_process.js:346:11),     at emitOne (events.js:116:13),     at Socket.emit (events.js:211:7),     at Pipe._handle.close [as _onclose] (net.js:557:12)]
npm ERR! errno 1
npm ERR! mobile@1.0.0 watch: `webpack --watch --env.tnsAction run ""`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mobile@1.0.0 watch script.

I have read some similiar issues posts on github, and installed nativescript-vue-externals package and it still doesn’t work.


I fixed the problem with connecting real phone with usb debugging option. This error is happening only while trying to use virtual android device with tns vue cli, it works normally while using standart nativescript build template, so it might be some kind of bug.