demetrio812 / nativescript-ibeacon

iBeacon library for Nativescript (supporting iOS and Android)
Other
13 stars 9 forks source link

cannot run demo on android #19

Open aubrey-fowler opened 4 years ago

aubrey-fowler commented 4 years ago

tns --version 6.5.0

node -v v12.18.4

ng version Angular CLI: 8.3.29 Node: 12.18.4 OS: win32 x64

I downloaded the source code from this repo in a zip file and extracted the file.

When I try to run npm run demo.android I get an error and can't proceed.

npm run demo.android

> nativescript-ibeacon@0.8.1 demo.android C:\Users\User\Downloads\nativescript-ibeacon-master\nativescript-ibeacon-master
> npm run preparedemo && cd demo && tns run android --emulator

> nativescript-ibeacon@0.8.1 preparedemo C:\Users\User\Downloads\nativescript-ibeacon-master\nativescript-ibeacon-master
> npm run build && cd demo && tns plugin remove nativescript-ibeacon && tns plugin add .. && tns install

> nativescript-ibeacon@0.8.1 build C:\Users\User\Downloads\nativescript-ibeacon-master\nativescript-ibeacon-master
> tsc

npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\..\..\..\denny\workspaceNW\nativescript-ibeacon" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-10-06T10_36_52_542Z-debug.log
Command failed: npm uninstall nativescript-ibeacon --save
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\..\..\..\denny\workspaceNW\nativescript-ibeacon" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-10-06T10_36_56_162Z-debug.log

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! errno ENOENT
npm ERR! nativescript-ibeacon@0.8.1 preparedemo: `npm run build && cd demo && tns plugin remove nativescript-ibeacon && tns plugin add .. && tns install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the nativescript-ibeacon@0.8.1 preparedemo 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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-10-06T10_36_56_244Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nativescript-ibeacon@0.8.1 demo.android: `npm run preparedemo && cd demo && tns run android --emulator`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nativescript-ibeacon@0.8.1 demo.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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-10-06T10_36_56_291Z-debug.log