NativeScript / NativeScript/nativescript-cli

hooks folder isn't generated when node_modules are present

未關閉
#4,544 4 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@tsonevn 已經在處理了。

開始於 2019年4月17日。

feature
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
8

描述

@armpogart commented on Tue Apr 16 2019

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.3.1
  • Cross-platform modules: 5.3.1
  • Android Runtime: 5.3.1
  • iOS Runtime: 5.3.1
  • Plugin(s):

Describe the bug

When node_modules folder is present and hooks folder is not present, tns install doesn't generate it, it only generates platforms folder. That causes to build fail afterwards with not clear error message.

To Reproduce

After creating clear project remove hooks folder and run tns install.

Expected behavior
Hooks folder to be regenerated and on tns build or tns run clear message that hooks folder is not present.

Sample project

Additional context

It is usual practice to cache node_modules in CI environment which will prevent hooks folder to be generated on tns install. Also the lack of clear message and some other unrelated message caused me to debug issue for several hours.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。