目录
Hello World
1.创建项目
npx nuxi@latest init my-bilibili
问题1.:
[下午3:54:05] ERROR Error: Failed to download template from registry: request to https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json failed, reason: getaddrinfo ENOENT raw.githubusercontent.com
解决:host加入以下配置
185.199.108.133 raw.githubusercontent.com
问题2:
node.js 版本太老:
WARN Current version of Node.js (14.16.1) is unsupported and might cause issues. 下午3:54:04 Please upgrade to a compatible version >= 18.0.0.
更新版本:https://blog.csdn.net/qq_41838435/article/details/128186488
2.运行项目
PS E:\nuxtProject\my-bilibili> npm run de
3.访问localhost:3000
欢迎页面默认为SSR 渲染:
关闭SSR后保存:
再次抓包查看返回html:
标签:templates,githubusercontent,入门,54,raw,World,com,Nuxt From: https://www.cnblogs.com/czzz/p/17741295.html