@echo off
REM filepath: /c:/Users/Administrator/Desktop/ffi-napi/install-electron.bat
echo 正在配置国内镜像源...

npm config set registry https://registry.npmmirror.com
npm config set electron_mirror https://npmmirror.com/mirrors/electron/
npm config set electron_builder_binaries_mirror https://npmmirror.com/mirrors/electron-builder-binaries/

echo 正在清理缓存...
npm cache clean --force

echo 正在删除 node_modules...
if exist node_modules rmdir /s /q node_modules

echo 正在安装依赖...
npm install

pause