nativescript-rootlayout-demo icon indicating copy to clipboard operation
nativescript-rootlayout-demo copied to clipboard

npm ERR! missing script: start.android

Open cichy380 opened this issue 4 years ago • 1 comments

I did everything according to the instructions (clone repo, install dependences), but when I used to command npm run start.android I got error:

npm ERR! missing script: start.android

PS I started your demo by ns run android, but how should work npm run start.android ?

cichy380 avatar Dec 12 '21 18:12 cichy380

Thanks for pointing that out, seems like the scripts got deleted when we did an Angular 12 update (https://github.com/williamjuan027/nativescript-rootlayout-demo/commit/c0260b5b7e7cfe5f4eafa0e0fe3802edc5429560#diff-77f49514b7e05ae7431e9f925732ec150ba4e5615003ff9c0f0de00a33b26a25)

These were the scripts if you were curious :)

"start.ios": "ns run ios --no-hmr",
"start.android": "ns run android --no-hmr",

I've updated the README to use the CLI commands directly.

williamjuan027 avatar Dec 13 '21 09:12 williamjuan027