opentrace-community / opentrace-android

OpenTrace Android app. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
577 stars 223 forks source link

npm issue #16

Closed Hoangtho11188 closed 4 years ago

Hoangtho11188 commented 4 years ago

I have a issue at below step : opentrace-cloud-functions>npm --prefix functions install npm ERR! Can't install : Missing package version

Could you pls help me on this?

achrinza commented 4 years ago

This issue is probably more suited in https://github.com/opentrace-community/opentrace-cloud-functions

Try the following: • Ensure the latest Node.js LTS version is used • Update NPM with npm install -g npm

Hoangtho11188 commented 4 years ago

This issue is probably more suited in https://github.com/opentrace-community/opentrace-cloud-functions

Try the following: • Ensure the latest Node.js LTS version is used • Update NPM with npm install -g npm

Yes, updated and this issue still appeared :( I'm stuck at this step .

esQmo commented 4 years ago

Mee too, and this guide is poorly writen! You need to show step by step guide!

achrinza commented 4 years ago

In the spirit of nurturing a healthy FOSS community, let's try to keep the conversation civil.

I'm not too sure why the docs suggest using --prefix, but could you try the following:

  1. cd functions

    This would put you in the same directory as package.json, thereby removing the need to use --prefix

  2. npm ci

    I recommend this command over npm install as it makes use of package locks, thereby making the installation reproducible.

Further reading:

achrinza commented 4 years ago

Duplicate of https://github.com/opentrace-community/opentrace-cloud-functions/issues/14

achrinza commented 4 years ago

I'm still unable to replicate the issue from my end. Could you run the following command:

... and then post it here?

Here's mine:

win32 x64 12.16.1

Also, could you try adding this key-value into package.json, and then retry the install process?

"version": "0.0.1"
Hoangtho11188 commented 4 years ago

I'm still unable to replicate the issue from my end. Could you run the following command:

  • node -e "console.log(process.platform, process.arch, process.versions.node)"

... and then post it here?

Here's mine:

win32 x64 12.16.1

Also, could you try adding this key-value into package.json, and then retry the install process?

"version": "0.0.1"

Thanks for your support, it's OK now, deploy the functions to firebase succeed. Now I'm facing with this issue when run app : NOT-IDLE Failed to retrieve HandShakePin NOT_FOUND Could you pls give some advise for this?

achrinza commented 4 years ago

@Hoangtho11188 Issue #9 addresses this concern. Could you take a look at the thread there?

Hoangtho11188 commented 4 years ago

@Hoangtho11188 Issue #9 addresses this concern. Could you take a look at the thread there?

it's ok now, thanks so much @achrinza :)

Hoangtho11188 commented 4 years ago

@achrinza One more question, how do we test this app? Ex : with 2 devices (installed this app)

achrinza commented 4 years ago

Hi @Hoangtho11188, apologies for the delayed reply. Unfortunately my knowledge of the OpenTrace project is rather limited, so I can't really help out in answering those queries.

There's a number of issues mentioning OTP throughout the different repos, could you check those out?

achrinza commented 4 years ago

To quote @rinekri (taken from https://github.com/opentrace-community/opentrace-android/issues/10#issuecomment-613891782):

you can double tap on logo at first tab to open a debug screen. If everything is okey you will see cards with an exchanged information.

Not too sure if it works on the Android app, but I thought it's worth a mention.

rinekri commented 4 years ago

To quote @rinekri (taken from #10 (comment)):

you can double tap on logo at first tab to open a debug screen. If everything is okey you will see cards with an exchanged information.

Not too sure if it works on the Android app, but I thought it's worth a mention.

I 100% sure that it works :)

Hoangtho11188 commented 4 years ago

To quote @rinekri (taken from #10 (comment)):

you can double tap on logo at first tab to open a debug screen. If everything is okey you will see cards with an exchanged information.

Not too sure if it works on the Android app, but I thought it's worth a mention.

I 100% sure that it works :)

My app crash when did this step.On debugging. :)

rinekri commented 4 years ago

To quote @rinekri (taken from #10 (comment)):

you can double tap on logo at first tab to open a debug screen. If everything is okey you will see cards with an exchanged information.

Not too sure if it works on the Android app, but I thought it's worth a mention.

I 100% sure that it works :)

My app crash when did this step.On debugging. :)

Wow, check logs from logcat, maybe something is not initialized correctly or your device doesn’t support something what app uses in debug mode.

Hoangtho11188 commented 4 years ago

device-2020-04-20-140523 @rinekri Empty screen when double tap on logo. I have 2 devices, seem as they weren't connected.Do you have any advice or suggestion?