Skip to content

Commit a803265

Browse files
author
Ken Berkeley
committed
add cross-env
1 parent b20729d commit a803265

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@
6868
请分别 `git clone`,打开**两个**命令窗口( Windows 下推荐使用 `Cygwin / Git Bash`**分别**切换到两者的目录下
6969
分别敲下 `npm install` 安装依赖(为避免 Windows 下 npm 2.x 的软链接问题,可加上 `--no-bin-link` 完全解构所有依赖)
7070

71-
最后需要全局安装跨平台环境变量配置器:`npm i cross-env -g`
72-
7371
### <a name="start">⊙ 启动</a>
7472
先后在 `msg-board-api``react-demo` 的命令窗口下,敲下 `npm start`
7573
如无意外,默认浏览器就会自动打开 `localhost:9090`,您立即可以看到效果

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"clean-webpack-plugin": "^0.1.13",
3939
"connect-history-api-fallback": "^1.1.0",
4040
"copy-webpack-plugin": "^4.0.1",
41+
"cross-env": "^3.2.4",
4142
"css-loader": "^0.23.0",
4243
"eslint": "^1.10.3",
4344
"eslint-friendly-formatter": "^1.2.2",

0 commit comments

Comments
 (0)