• 克隆开源项目


    克隆到本地:

    git clone https://gitee.com/renrenio/renren-fast-vue.git

    git clone https://gitee.com/renrenio/renren-fast.git

    将拷贝下来的“renren-fast”删除“.git”后,拷贝到“gulimall”工程根目录下,然后将它作为gulimall的一个module

    创建“gulimall_admin”的数据库,然后执行“renren-fast/db/mysql.sql”中的SQl脚本

    修改“application-dev.yml”文件,默认为dev环境,修改连接mysql的url和用户名密码

    spring:
        datasource:
            type: com.alibaba.druid.pool.DruidDataSource
            druid:
                driver-class-name: com.mysql.cj.jdbc.Driver
                url: jdbc:mysql://192.168.137.14:3306/gulimall_admin?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
                username: root
                password: root
    

      安装node.js,并且安装仓库

    npm config set registry http://registry.npm.taobao.org/

    PS D:	mp
    enren-fast-vue> npm config set registry http://registry.npm.taobao.org/
    PS D:	mp
    enren-fast-vue> npm install
    npm WARN ajv-keywords@1.5.1 requires a peer of ajv@>=4.10.0 but none is installed. You must install peer dependencies yourself.
    npm WARN sass-loader@6.0.6 requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    
    up to date in 17.227s
    PS D:	mp
    enren-fast-vue> 
    

      

    PS D:	mp
    enren-fast-vue> npm run dev
    
    > renren-fast-vue@1.2.2 dev D:	mp
    enren-fast-vue
    > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
    
     10% building modules 5/10 modules 5 active ...-0!D:	mp
    enren-fast-vuesrcmain.js(node:19864) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created)
    (node:19864) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
    (node:19864) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
    

      

    常见问题1:“Module build failed: Error: Cannot find module 'node-sass”

    运行过程中,出现“Module build failed: Error: Cannot find module 'node-sass’报错问题”,解决方法

    用npm install -g cnpm --registry=https://registry.npm.taobao.org ,从淘宝镜像那下载,然后cnpm下载成功。

    最后输入cnpm install node-sass --save。

    常见问题2:cnpm - 解决 " cnpm : 无法加载文件 C:Users93457AppDataRoaming pmcnpm.ps1,因为在此系统上禁止运行脚本。有关详细信息 。。。 "

    https://www.cnblogs.com/500m/p/11634969.html

    所有问题的根源都在“node_modules”,npm install之前,应该将这个文件夹删除,然后再进行安装和运行。

    再次运行npm run dev恢复正常

  • 相关阅读:
    AllowsTransparency和WebBrowser兼容性问题解决方案
    webbrowser和js交互小结
    wpf数据验证实例及常用方法小结
    Scrum 冲刺第一天
    Scrum 冲刺第二天
    1625 宝石项链 大视野评测
    1082栅栏 大视野评测
    bzoj 1606: [Usaco2008 Dec]Hay For Sale 购买干草
    1639 月度开支 大视野评测
    1650 跳石子 大视野评测
  • 原文地址:https://www.cnblogs.com/vincentmax/p/14367683.html
Copyright © 2020-2023  润新知