Skip to content

Commit a9867fe

Browse files
committed
docs: use npx to compatible with windows
1 parent 6e08939 commit a9867fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cd ios && pod install
5454
# Step 3
5555
生成配置文件
5656
```bash
57-
./node_modules/.bin/iconfont init
57+
npx iconfont init
5858
```
5959
此时项目根目录会生成一个`iconfont.json`的文件,内容如下:
6060
```json
@@ -102,7 +102,7 @@ cd ios && pod install
102102
# Step 4
103103
开始生成React组件
104104
```bash
105-
./node_modules/.bin/iconfont
105+
npx iconfont
106106
```
107107
生成后查看您设置的保存目录中是否含有所有的图标
108108

0 commit comments

Comments
 (0)