Redux 教程——服务端渲染
是直接在counter上面改的
根据里面的步骤,跑不通,npm start
就报错
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "D:\\software\\nodejs\\node.exe" "D:\\software\\nodejs\\node_modul es\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! tutorial@1.0.0 start: `if-env NODE_ENV=production && npm run start:prod || npm run start:dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tutorial@1.0.0 start script 'if-env NODE_ENV=production & & npm run start:prod || npm run start:dev'.
npm ERR! This is most likely a problem with the tutorial package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! if-env NODE_ENV=production && npm run start:prod || npm run start:d ev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tutorial
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls tutorial
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Nicholas\LW\testPro\redux\examples\Counter_Server_Render\npm-deb ug.log
看不懂,有遇到过同样问题的朋友吗?,求分享。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.