sola97
V2EX  ›  Next.js

v0.dev 开发的 Next.js 项目,下载代码到本地,怎么跑起来?

  •  
  •   sola97 · Jan 2, 2025 · 2951 views
    This topic created in 495 days ago, the information mentioned may be changed or developed.

    我知道创建的是 Next.js + Tailwind CSS + shadcn/ui 这个框架
    v0.dev 让我下载的代码里,没有 package.json ,我需要自己配置这些吗?

    Supplement 1  ·  Jan 2, 2025
    安装了 shacdn ,加上配置了 tailwindcss 之后能跑了,问题解决
    2 replies    2025-01-03 11:03:25 +08:00
    horizon
        1
    horizon  
       Jan 2, 2025
    npx create-next-app@latest
    然后复制粘贴
    YaD2x
        2
    YaD2x  
       Jan 3, 2025
    npx shadcn@latest add "https://v0.dev/chat/b/b_24xxxxxxX1c"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:10 · PVG 07:10 · LAX 16:10 · JFK 19:10
    ♥ Do have faith in what you're doing.