Skip to content

Commit f4e5ac7

Browse files
committed
docs: simplify local dev install to direct node execution only
1 parent 0c08b0e commit f4e5ac7

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,24 +111,10 @@ export DEVCODEX_TOKEN=pro_test # 模拟 Pro 层授权(可选)
111111
### 本地安装测试(在目标项目中验证)
112112

113113
```bash
114-
# 方式一:npm link(推荐)
115-
cd /path/to/devcodex
116-
npm link
117-
118-
cd /path/to/your-project
119-
npm link @vextjs/devcodex
120-
npx @vextjs/devcodex init
121-
122-
# 方式二:直接从本地路径安装
123-
npm install /path/to/devcodex
124-
npx @vextjs/devcodex init
125-
126-
# 方式三:打包后安装(模拟真实发布)
127-
cd /path/to/devcodex
128-
npm pack
129-
# 生成 vextjs-devcodex-0.0.1.tgz
114+
# 直接用 node 运行,无需 link 或安装
115+
# 注意:必须先 cd 到目标项目目录,init 会复制文件到当前目录的 .github/
130116
cd /path/to/your-project
131-
npm install /path/to/devcodex/vextjs-devcodex-0.0.1.tgz
117+
node /path/to/devcodex/index.js init
132118
```
133119

134120
### 验证安装

0 commit comments

Comments
 (0)