Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行npm run dev的时候遇到的报错 #31

Closed
DTbelieveIT opened this issue May 1, 2017 · 6 comments
Closed

执行npm run dev的时候遇到的报错 #31

DTbelieveIT opened this issue May 1, 2017 · 6 comments

Comments

@DTbelieveIT
Copy link

node:7.90
npm : 4.10
我按照README.md的安装步骤, 执行npm run dev时遇到了下面的报错
ERROR Failed to compile with 1 errors

  • react/lib/getNextDebugID in ./~/react-dom/lib/instantiateReactComponent.js
    To install it, you can run: npm install --save react/lib/getNextDebugID

下面有出现“ Listening at http://localhost:8080”,但是打开localhost:8080出现的结果是Get / 404
另一个命令npm run server可以打开,请问又遇到这种情况吗

@yinxin630
Copy link
Owner

没有遇到过, 看起来是react安装不正确, 试试单独安装react, 或者换版本试试(15.3 or 15.4)

@DTbelieveIT
Copy link
Author

试过了,还是一样,请问你的node版本是多少?对啦,你是不是在mac平台下开发的,在window下安装"bcrypt": "^1.0.2"相当费劲,我记得之前在开发一个项目想用,可惜安装不成功,后来用node-bcrypt了

@yinxin630
Copy link
Owner

node 版本我用的7.6以上, mac平台.

@HeyiMaster
Copy link

同样是这个问题,请问怎么解决的? 是版本不对吗

@newshell
Copy link

react 版本跟react-dom版本不兼容 改一下react版本就好了

@yinxin630
Copy link
Owner

感谢 @newshell , 有问题的同学可以试试看, 最近在研究docker, 以后会发布docker版本, 避免繁杂的环境和应用配置

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

No branches or pull requests

4 participants