NativeScript / NativeScript/nativescript-cli
Sending runtime version expresion rather than actual version during installation on device.
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
Issue Description
When I have on package.json:
"@nativescript/android": "^8.2.2",
On my Samsung Galaxy phone, I get an error during installation that the version ^8.2.2 is illegal.
NS seems to be sending the npm expression instead of the actual runtime version being installed.
Reproduction
On any project package.json change "@nativescript/android" to use an expression. And do ns run android
If your phone is lenient and accepts it, check the metadata on your phone and you will see the version number is the version expression; otherwise the install will be rejected.
Relevant log output (if applicable)
No response
Environment
No response
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 package.json 中的相依性表達式開始,在裝置上執行 ns run android 以重現問題。追蹤 Android 安裝中繼資料的組成位置,然後確認裝置收到的是解析後的執行階段版本,而不是 package.json 中的表達式。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- android, javascript
- 領域
- cli, mobile
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100