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 -- --env.android
> mobile@1.0.0 watch D:\mobile
> webpack --watch --env.tnsAction run "--env.android"
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, --env.android], 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, function=Socket.stream.socket.on, 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 Socket.stream.socket.on (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! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mobile@1.0.0 watch: `webpack --watch --env.tnsAction run "--env.android"`
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.