20 lines
468 B
Batchfile
20 lines
468 B
Batchfile
@echo off
|
|
REM filepath: /c:/Users/Administrator/Desktop/ffi-napi/install-with-cnpm.bat
|
|
echo 使用 cnpm 安装依赖...
|
|
echo.
|
|
|
|
echo 步骤 1: 安装 cnpm...
|
|
call npm install -g cnpm --registry=https://registry.npmmirror.com
|
|
|
|
echo.
|
|
echo 步骤 2: 清理旧文件...
|
|
if exist node_modules rmdir /s /q node_modules
|
|
if exist package-lock.json del /f /q package-lock.json
|
|
|
|
echo.
|
|
echo 步骤 3: 使用 cnpm 安装依赖...
|
|
call cnpm install
|
|
|
|
echo.
|
|
echo 安装完成!
|
|
pause |