Skip to content

Node

npm

sh
# 设置镜像源
npm config set registry https://registry.npmmirror.com/

# 初始化项目
npm install

# 运行项目
npm run dev

yarn

sh
# 安装
npm install -g yarn

# 设置镜像源
yarn config set registry https://registry.npmmirror.com/

# 初始化项目
yarn

# 运行项目
yarn dev

pnpm

sh
# 安装
npm install -g pnpm

# 设置镜像源
pnpm config set registry https://registry.npmmirror.com/

# 设置仓库目录
pnpm config set store-dir "C:\Users\Rhyheart\.pnpm-store"

# 初始化项目
pnpm install

# 运行项目
pnpm run dev