# git-analyzer-code-node **Repository Path**: vipboo/git-analyzer-code-node ## Basic Information - **Project Name**: git-analyzer-code-node - **Description**: 利用node获取统计git提交记录 - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-08 - **Last Updated**: 2024-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # README ## 初始化项目 ```shell npm install ``` ## PKG ### 安装打包工具 ```shell # 全局安装方便打包 npm install -g pkg ``` ### PKG所需要的工具包 如果报错下面类似的消息,可能是网络不好无法下载相关工具包,可手动下载参考下面的官网地址即可 ``` > Error! Not able to build for 'linux' here, only for 'win' > Error! AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: ``` - 官网地址 > https://github.com/vercel/pkg-fetch/releases 我这里下载的是`node-v18.5.0-macos-x64` `node-v18.5.0-linux-x64` `node-v18.5.0-win-x64`,可根据自己所需下载。 把下载好的这三个工具包放在自己电脑的`.pkg-cache` 目录下。并将**node**替换成**fetched**,例如:`node-v18.5.0-win-x64`-> `fetched-v18.5.0-win-x64` ### 参考文档 > https://zhuanlan.zhihu.com/p/607423770 ## Windows执行打包指令 ```shell pkg . ```