从零开始学习React 1.使用Next.js框架搭建React项目,需先确保已安装node.js npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter" ps: 第一行的 npx 不是拼写错误 —— 它是 npm 5.2+ 附带的 package 运行工具。