taofed / react-web

A framework for building web apps with React Native compatible API.
Other
3.36k stars 448 forks source link

有段英文看不懂,能解释下吗? #231

Closed yy7054wyq5 closed 7 years ago

yy7054wyq5 commented 7 years ago

Execute react-web init to install stable npm version, or execute react-web init --version git+https://github.com/taobaofed/react-web.git to install latest git version. That install react-web and devDependencies to your project and make a web directory with webpack.config.js file under your project 我知道是安装react-web依赖,在项目目录下创建web文件夹,然后在该文件夹下创建webpack.config.js 至于前面写的,安装稳定的npm,还有init命令,实在不能理解。

cssivision commented 7 years ago

执行 react-web init 安装稳定版本的 react-web,或者执行 react-web init --version git+https://github.com/taobaofed/react-web.git 安装最新版本的 react-web,同时在项目里面安装开发依赖,项目目录下创建web文件夹,然后在该文件夹下创建webpack.config.js 文件。

以上。

yy7054wyq5 commented 7 years ago

好吧。还有一些问题不明白。以下是我输入的命令,我是win7 64位,虽然我知道这可能并不是问题的关键。但是我知道我又懵逼了。 第二条命令是我删除了node_modules内的react-web 包之后。

D:\WWW\react-native-web-demo>react-web init
Looks like React Web project already exists in the current
folder. Run this command from a different folder or remove node_modules/react-web

D:\WWW\react-native-web-demo>react-web init
Usage: react-web init <ProjectName> [--verbose]

D:\WWW\react-native-web-demo>react-web init react-native-web-demo
"react-native-web-demo" is not a valid name for a project. Please use a valid identifier name (alphanumeric).
cssivision commented 7 years ago

https://github.com/brianneisler/react-web-example 直接使用这个项目作为模板修改