# sitecol **Repository Path**: sambsp/sitecol ## Basic Information - **Project Name**: sitecol - **Description**: tool for collect personal sites - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-02 - **Last Updated**: 2026-06-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## node.js sdk 1、安装 nvm 搜索下载nvm,双击安装 2、使用 nvm安装 node.js nvm install 22 nvm use 22 ## 项目创建 1、创建新文件夹,test 2、cd test 3、npm init -y 4、npm install electron --save-dev --verbose 5、查看是否electron已经安装好(也即run自己的工程) npx electron . 如果弹出对话框 index.js没有,那么就是electron安装好了。注意,22版本不需要electron下面有path.txt。 具体的弹框: Error launching app Unable to find Electron app at [path]. Cannot find module '[path].index.js'. Please verify the package.json has a valid "main" entry. 注意: 官方国内环境下载很慢,我们需要设置镜像: npm config edit 命令会利用写字板打开文件,然后在此文件中加入 registry=https://registry.npmmirror.com/ 单纯这个设置会遇到audit error,可以通过 npm config edit中 audit=false 关闭audit,不影响安装结果。 ## 打包 npm install --save-dev @electron-forge/cli npm electron-forge import npm run make ## 参考: https://www.electronjs.org/docs/latest/tutorial/tutorial-packaging