NativeScript / NativeScript/nativescript-cli
Self tns validation...
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
I've seen this issue occur the last several times I've upgraded the nativescript command on my Macintosh. I haven't seen this on my windows 7 box.
It installs, and gives me the normal list of all the modules it has installed; but it does not run any of the post-install stuff. However, the install is bad, some modules are missing even though it "appears" like everything installed properly (because of the list of all the modules it just installed successfully is long).
Running TNS will work in some cases; but in most cases depending on which module wasn't installed it will fail at that point with random errors.
I am recommending that on install part of the post install step would be to load each npm module that you are depending upon in a try catch and verify they all exist properly. Then set a flag to the current version. On startup of the tns command, see if this flag is set to the current version, if it isn't set then run this check. In this way you can at least tell the end user that the install is bad and to reinstall tns command.
If others are running into this; it is very confusing why it "appears" to have installed but it is broken in random places. I've learned from using tns for a long time that if it doesn't run the post install checks just to do another "npm install -g nativescript" until it actually runs the post install scripts...
Please note I do realize this could be an issue with my Node/Npm version so I'm going to leave this info here in case others run into this. I plan updating both to the latest 5.x release later so we shall see ...
Node v5.11, npm v3.32
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
該 issue 沒有指出檔案、測試或進入點。首先在 macOS 上使用 Node v5.11 和 npm v3.32 重現全域安裝,然後追蹤安裝後驗證是否會執行,以及必要模組是否能夠載入;如果安裝不完整時能夠給出明確的失敗訊號,也應視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, node.js
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100