jasonliao / isomorphic-react-workflow-boilerplate

:sunglasses: react,redux,react-router,react-hot-loader,webpack,express,ejs,babel
23 stars 5 forks source link

开发环境补充 #3

Open byronlun opened 7 years ago

byronlun commented 7 years ago

您好,我刚刚使用了你的这个仓库,按照你提示的步骤 install 了依赖之后,发现运行的时候报错:

 npm start

> isomorphic-react-workflow-boilerplat@1.0.0 start E:\Byronlun\react-ssr\isomorphic-react-workflow-boilerplate
> babel-node ./server/server.js

'babel-node' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒▒▒▒▒▒▒▒▒▒ļ▒▒▒

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! isomorphic-react-workflow-boilerplat@1.0.0 start: `babel-node ./server/ server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the isomorphic-react-workflow-boilerplat@1.0.0 start script ' babel-node ./server/server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the isomorphic-react-work flow-boilerplat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel-node ./server/server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs isomorphic-react-workflow-boilerplat
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!     npm owner ls isomorphic-react-workflow-boilerplat
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\Byronlun\react-ssr\isomorphic-react-workflow-boilerplate\npm-debug.log

发现作者是借助 babel-node 来启动项目,然后 babel-node 是依赖于 babel-cli,需要全局安装 babel-cli,所以建议作者补充一下 README 哈 :smiley:

jasonliao commented 7 years ago

You can update my README.md in "Note" section and new a pull request :heart: