在 npm 5.1 或者更低版本中,不存在 npx 命令。因此,你必须全局安装 create-next-app: npm install -g create-next-app 然后再运行: create-next-app