[英]Cannot Install Appcelerator CLI or SDK
我正在嘗試安裝 Appcelerator CLI 和 SDK,但我總是遇到錯誤。 我正在使用 Windows。 當我執行npm install appcelerator -g
時,在 cmd 中,(以管理員身份運行)我得到:
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
changed 122 packages, and audited 123 packages in 9s
4 packages are looking for funding
run `npm fund` for details
2 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
而且,當我運行appc
時,在 cmd 中(以管理員身份運行)我得到program.allowUnknownOption is not a function
。
當我在 VSCode 中安裝擴展程序時,如 VSCode 官方市場和 Titanium 網站上所述,然后單擊“安裝工具”,此Titanium SDK Titanium Updates: Installing Titanium SDK: 10.1.1.GA (1/1)
根本不會安裝。
請有人幫我安裝 CLI 和 Titanium SDK。 (我知道我必須在 VSCode 中使用它)。
由於您沒有提及您的 nodejs 版本(聽起來像是錯誤的版本,請使用 nodejs 14 以確保安全)執行https://github.com/m1ga/from_zero_to_app/blob/master/installation.md#中提到的以下步驟快速安裝
我已經更新了一個現有的設置,但我已經很長時間沒有使用它了,所以它與新安裝相同:
npm i -g titanium alloy appcelerator
也就是說:請確保開始使用ti
cli 而不是appc
。 您可以在 VSCode package 中啟用開源版本。
這是切換 CLI 時需要執行的步驟的教程: https://github.com/m1ga/from_zero_to_app/blob/master/appc_to_ti.md
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.