Skip to content

Commit

Permalink
fix: 修复依赖安装失败问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
Evansy committed Aug 25, 2023
1 parent 065f651 commit a8c7cd1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@

- 环境: node 16.18+, 包管理工具 pnpm (安装完 node 执行 `npm i pnpm -g` 即可);
- 安装依赖: clone 工程之后,执行 `pnpm i`
- `npm` 安装报错, 命令后加参数 `npm i --ignore-scripts` 忽略 `scripts` 相关依赖即可解决
![p9211Ag.png](https://s1.ax1x.com/2023/08/25/pPNP6RU.png)
- 推荐使用 `pnpm`, 安装依赖不会有 因为网络而失败 的问题
- 启动: 按 `F5` 即可自动执行 `pnpm run dev` 并且打开浏览器
- 部署
- 部署到本地:执行 `pnpm build` 构建完成后把 `dist` 文件夹 放到服务器,并配置 `nginx` 即可
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"vue-tsc": "^1.8.4",
"xgplayer": "^2.32.3"
},
"resolutions": {
"bin-wrapper": "npm:bin-wrapper-china"
},
"browserslist": [
"defaults",
"not ie < 11",
Expand Down
44 changes: 24 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8c7cd1

Please sign in to comment.