Skip to content
This repository has been archived by the owner on May 13, 2019. It is now read-only.

react-web init projectName error #271

Open
jlf1103 opened this issue Jan 23, 2018 · 1 comment
Open

react-web init projectName error #271

jlf1103 opened this issue Jan 23, 2018 · 1 comment

Comments

@jlf1103
Copy link

jlf1103 commented Jan 23, 2018

react-native init test 之后
初始化一直提示找不到cli.js
`➜ github react-web init test
prompt: Directory test already exists. Continue?: (no) yes
This will walk you through creating a new React Web project in /Users/L/Code/github/test
Installing react-web package from npm...
module.js:557
throw err;
^

Error: Cannot find module '/Users/L/Code/github/test/node_modules/react-web/cli.js'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at /usr/local/lib/node_modules/react-web-cli/index.js:225:15
at ChildProcess.exithandler (child_process.js:264:7)
at ChildProcess.emit (events.js:160:13)
at maybeClose (internal/child_process.js:943:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)`

node_modules/react-web 下的文件如下:
LICENSE
README-zh.md
README.md
lib
package.json
scripts
src

@yuanyan
Copy link
Contributor

yuanyan commented Jan 25, 2018

感谢反馈,已经不推荐使用 react-web init 项目,cli.js 这个文件会发版本来推荐最新的更简单的使用方式

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants