StackOverflow 文件 Node.js 教程 ASL 刪除無關的包 刪除無關的包 Created: November-22, 2018 要刪除無關的包(已安裝但不在依賴項列表中的包),請執行以下命令: npm prune 要刪除所有 dev 包,請新增 --production 標誌: npm prune --production 更多資訊 範圍和儲存庫釋出包