NativeScript / nativescript-app-sync

♻️ Update your app without going through the app store!
MIT License
125 stars 24 forks source link

Cannot install app-sync #25

Closed lehongwang closed 5 years ago

lehongwang commented 5 years ago

i did tns plugin add nativescript-app-sync but

npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn git npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t https://github.com/EddyVerbruggen/nativescript-zip.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Quang.LHQ.000\AppData\Roaming\npm-cache_logs\2019-07-30T02_17_49_691Z-debug.log Command npm.cmd failed with exit code 1

please help

2019-07-30_091914

EddyVerbruggen commented 5 years ago

The website (git repo) exists (try it in your browser), so perhaps there was a network hickup or a corporate firewall interfering?

lehongwang commented 5 years ago

EddyVerbruggen, can you help me to detect if app is on preview mode to not to require app-sync ? thank you

EddyVerbruggen commented 5 years ago

I saw this was answered to you on Slack. Can you please post the solution here and close? Thx.

EddyVerbruggen commented 5 years ago

For others: to see if you're running inside the NativeScript Preview app, use https://github.com/EddyVerbruggen/nativescript-appversion to check the current app id, and if it's org.nativescript.preview you're running in the Preview app (instead of your app in standalone mode).