nativescript-vue: error following tutorial
I installed nativescript-vue and I get an error running both npm run watch:ios
and npm run watch:android
fullstack-mobile
> npm run watch -- --env.android
> fullstack-mobile@1.0.0 watch /Users/username/projects/chovy/fullstack/fullstack-mobile
> webpack --watch --env.tnsAction run "--env.android"
info: Copying NativeScript plugins to template dependencies...
info: Preparing NativeScript application from template...
npm WARN fullstack-mobile@ No repository field.
info: Bundling application for android...
Webpack is watching the files…
Executing post-build scripts
info: Running NativeScript application...
error: uncaughtException: 127 date=Sun Jun 10 2018 16:27:16 GMT-0700 (PDT), pid=71776, uid=501, gid=20, cwd=/Users/username/projects/chovy/fullstack/fullstack-mobile, execPath=/Users/username/.nvm/versions/node/v10.3.0/bin/node, version=v10.3.0, argv=[/Users/username/.nvm/versions/node/v10.3.0/bin/node, /Users/username/projects/chovy/fullstack/fullstack-mobile/node_modules/.bin/webpack, --watch, --env.tnsAction, run, --env.android], rss=200503296, heapTotal=170078208, heapUsed=116691416, external=1601018, loadavg=[2.681640625, 2.453125, 2.33056640625], uptime=621168, trace=[], stack=undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fullstack-mobile@1.0.0 watch: `webpack --watch --env.tnsAction run "--env.android"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fullstack-mobile@1.0.0 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2018-06-10T23_27_16_698Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fullstack-mobile@1.0.0 watch:android: `npm run watch -- --env.android`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fullstack-mobile@1.0.0 watch:android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2018-06-10T23_27_16_741Z-debug.log
I’m using node v10
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28 (7 by maintainers)
I had the same error because I didn’t have the AVD installed. After installing Android studio And creating and starting a new AVD, the NPM command worked.
@mrnagydavid Sidekick is just a GUI for the tns cli, so you have to install everything before you can use it.
I am using a mac, and I had no trouble setting it up (had some experience setting it up on linux beforehand). What I did was install Android studio, and then installed the sdk’s, created an emulator. Then I installed the tns cli and it worked right away.
If it helps, I managed to fix the issue after messing around with my template directory. Renaming my android image assets so they were all lowercase seemed to do the trick 😱
Have you created an android emulator? The easiest would be to start Android Studio, and create it there