npm-git-install
從 Git 儲存庫安裝 npm 套件
團隊經常需要在套件發布到 npm 之前,先從分支、fork 或私有 GitHub 儲存庫取得套件。此技能說明 npm Git URL 格式、驗證選項、安裝檢查,以及常見修正方式。
安裝前請停止並請求確認。
請審查安裝計畫,並在變更檔案前取得使用者明確同意。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "npm-git-install" from https://skillstore.io/skills/supercent-io-npm-git-install.md and its manifest at https://skillstore.io/api/skills/supercent-io-npm-git-install/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「npm-git-install」。 我需要從 GitHub 分支安裝套件。
預期結果:
助理會詢問儲存庫和分支,建議在正式環境固定標籤或提交,並提供簡潔的安裝命令。
正在使用「npm-git-install」。 我的私有 GitHub 套件在 npm install 期間失敗。
預期結果:
助理會將驗證檢查與套件建置檢查分開,然後建議 SSH、權杖和詳細記錄步驟。
正在使用「npm-git-install」。 全域 Git 套件命令在安裝後找不到。
預期結果:
助理會先檢查全域 npm prefix、套件 bin 項目、shell PATH 和安裝位置,再變更系統權限。
安全審計
高風險This documentation-focused skill is not malicious, and many backtick detections are Markdown false positives. Remaining risks include GitHub package installs, lifecycle scripts, token authentication, .npmrc edits, global binary linking, and privileged troubleshooting commands.
已確認的安全問題 (4)
能力複核項目 (31)
這些是真實的本機能力,對此技能而言可能是預期行為,因此需要複核,但不會按已確認的惡意行為計分。
風險因素
⚙️ 外部命令 (50)
🌐 網路存取 (23)
📁 檔案系統存取 (20)
🔑 環境變數 (3)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/supercent-io-npm-git-install/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/supercent-io-npm-git-install?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/supercent-io-npm-git-install?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/supercent-io-npm-git-install/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/supercent-io-npm-git-install.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
supercent-io. (2026). npm-git-install security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/supercent-io-npm-git-install/audits/6BibTeX 引用
@techreport{supercent-io-supercent-io-npm-git-install-2026,
author = {supercent-io},
title = {npm-git-install security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/supercent-io-npm-git-install/audits/6},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "npm-git-install security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "supercent-io"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/supercent-io-npm-git-install/audits/6"
identifiers:
- type: other
value: "skillstore:supercent-io-npm-git-install:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 中你可以打造什麼
安裝尚未發布的套件版本
當套件更新尚未發布到 npm 時,使用分支、標籤或提交參照。
使用私有 GitHub 套件
為內部儲存庫依賴項設定 SSH 或權杖式驗證。
疑難排解 Git URL 安裝
檢查安裝路徑、prepare 指令碼失敗、Git 可用性、快取問題和全域二進位檔。
試試這些提示
協助我從 GitHub 儲存庫安裝 npm 套件。在提供命令前,請先詢問 owner、repo,以及分支或標籤。
審查我的 npm Git 依賴項,並建議可讓安裝保持可重現的固定標籤或提交工作流程。
引導我使用 SSH 或權杖式存取,從私有 GitHub 儲存庫安裝 npm 套件。
協助我診斷 npm Git 安裝失敗。請包含 Git、驗證、prepare 指令碼、快取和全域路徑的檢查。
最佳實務
- 將正式環境依賴項固定到標籤或提交,而不是會變動的分支。
- 從 GitHub 安裝前,請審查儲存庫可信度、套件指令碼和 lockfile 變更。
- 使用最小權限憑證,並避免讓權杖出現在命令歷史、記錄和套件檔案中。
避免
- 不要使用全域權限從未知儲存庫安裝。
- 不要將 personal access token 直接放入依賴項 URL。
- 在檢查更安全的 npm prefix 選項前,不要使用 sudo 或遞迴變更擁有權。
常見問題
這可以安裝尚未發布到 npm 的套件嗎?
我應該在正式環境使用分支名稱嗎?
此技能會替我驗證私有儲存庫嗎?
Git URL 安裝可以執行套件指令碼嗎?
是否必須全域安裝?
哪些工具可以使用此技能?
開發者詳細資訊
作者
supercent-io授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
3e4b6c31a74a3bd1a291c98cf585d720cb9fbc88
維護新鮮度
2026/7/20
使用量
6 次下載 · 125 次瀏覽
檔案結構
📄 SKILL.md