Git Product home page Git Product logo

Comments (7)

Houfeng avatar Houfeng commented on May 18, 2024

通过 npm i dawn -g 安装后(也可以用 cnpm),就可以通过 dn init 创建项目,体验一些基础示例工程了。

from dawn.

mengnaYi avatar mengnaYi commented on May 18, 2024

一开始下载时就按照下面备注提示的这个步骤运行了命令,但是也没自启动哪个项目呀,是还需要自己创建吗?后来又百度了别的方法,结果是可以自启动一个自己想看的template,但是对应的vue或react框架(就是packages文件夹下dn-template-react或dn-template-vue文件)的index.js中import React from 'react';这句变红报错,这是导入出问题嘛?谢谢回复解答

from dawn.

mengnaYi avatar mengnaYi commented on May 18, 2024

https://zhuanlan.zhihu.com/p/28397857看的这个链接执行的

from dawn.

Houfeng avatar Houfeng commented on May 18, 2024

按如下步骤,就能创建一个工程,并启动它

# 1. 创建 & 初始化
$ dn init -t front

# 2. 开发 & 实时编译
$ dn dev

# 3. 语法检查 & 测试
$ dn test

# 4. 构建 & 打包
$ dn build

from dawn.

mengnaYi avatar mengnaYi commented on May 18, 2024

e4f99c06-3a98-4557-b665-fe2d2a2bccdf
还差点,就是报错,我执行是这样的:
重新下载一份项目重新启动开始
$npm i dawn -g
$ dn init -t front
$ dn dev
$ dn test
$ dn build
-----------------这些执行后没弹窗
然后又写了下
$ dn init template --force
(这时选的vue那个template)
$ dn dev
然后就自动弹出上面那个页面,然后检查后报错。。

from dawn.

xdlrt avatar xdlrt commented on May 18, 2024

项目目录下执行 npm i 后重试,目前看起来是依赖模块没有安装。

from dawn.

mengnaYi avatar mengnaYi commented on May 18, 2024

@xdlrt 可以了 ,谢谢
@Houfeng ,谢谢

from dawn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.