zoukankan      html  css  js  c++  java
  • 2、wepy安装后提示Cannot read property 'addDeps' 参考自https://www.cnblogs.com/yuanchaoyong/p/11614400.html

    摘抄自https://www.cnblogs.com/yuanchaoyong/p/11614400.html

    wepy安装步骤

    $ npm install @wepy/cli -g # 全局安装 WePY CLI 工具
    $ wepy init standard myproj # 使用 standard 模板初始化项目
    $ cd myproj # 进入到项目目录
    $ npm install # 安装项目依赖包
    $ npm run dev # 监听并且编译项目

    wepy build --watch运行后提示ERR Cannot read property 'addDeps' of undefined。 

    上面这是1.7.x的安装后运行进行以上提示,而我们安装的是2.x, git上已经更新安装方式,第一步 npm install @wepy/cli -g 更改为npm install @wepy/cli@next -g

    1. npm install @wepy/cli@next -g
    2. wepy init standard myproject
    3. cd myproject
    4. npm install
    5. wepy build --watch

    按照此步骤安装后运行结果
    [16:17:21] info build app start...
    [16:17:22] info app building App
    [16:17:22] info component building components
    [16:17:23] info component building components
    [16:17:23] info component building components
    [16:17:23] info vendor building vendor
    [16:17:23] info assets building assets
    [16:17:23] info build finished
    [16:17:23] info watching...

     
  • 相关阅读:
    Pyhont 高阶函数
    Python 函数式编程
    Python 递归函数
    Python 函数的参数定义
    Lniux学习-AWK使用
    Windows10 下 VirtualBox6 中 Centos8 无法安装"增强功能"
    Linux学习-Shell-系统启动过程与执行方式
    接口测试-工具介绍
    Linux学习-Sed 命令
    Linux学习-命令行参数、函数
  • 原文地址:https://www.cnblogs.com/si812cn/p/11905079.html
Copyright © 2011-2022 走看看