Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Error in using npm i @nativescript/capacitor plugin with Ionic 7 capacitor project

未關閉
#14 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
node.js
領域
documentation

研究方向

從「Installing @nativescript/capacitor」步驟開始,在使用 Node.js 18.16.0 的 Windows Ionic 7 Capacitor 專案中重現 npm run build:mobile。記錄讓此命令能在 Windows 上成功完成所需的缺少設定或修正後的步驟。

由索引模型根據 Issue 內容生成。

描述

Followed the Installing @nativescript/capacitor steps for Ionic 7 capacitor app with this plugin but getting following error on running the cmd

npm run build:mobile

\node_modules.bin\build-nativescript:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^

SyntaxError: missing ) after argument list
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1176:20)
at Module._compile (node:internal/modules/cjs/loader:1218:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47

Node.js v18.16.0
ERROR: "build:nativescript" exited with 1.

Please share every minor step required to include for Ionic 7 capacitor project running on windows

主要語言
TypeScript
星號
36
分支
2
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

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

NativeScript/capacitor-docs 的其他 Issue

查看 NativeScript/capacitor-docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

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

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