zoukankan      html  css  js  c++  java
  • vue npm run dev报错webpack-dev-server

    在运行vue项目时报如下问题:

    E:mobile_realmobile-vue>npm run dev

    > mobile_real@1.0.0 dev E:mobile_realmobile-vue

    > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

    npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! mobile_real@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the mobile_real@1.0.0 dev script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:

    npm ERR!     C:UsersFKT00120AppDataRoaming pm-cache\_logs2019-05-27T01_45_54_024Z-debug.log

    查阅资料发现是webpack新版bug,卸载现有webpack,安装老版本即可

    解决办法:

    1、npm uninstall webpack-dev-server

    2、npm install webpack-dev-server@2.9.1

    3、npm run dev

  • 相关阅读:
    SQLServer 知识点
    Entity转换为ViewModel时提供的一种转换方法
    Linq中IGrouping转换为IQueryable
    封装整形属性时对应到枚举
    新的转换列表方式
    工作态度
    EasyFrame
    NewCloud
    将博客搬至CSDN
    Html的语义化
  • 原文地址:https://www.cnblogs.com/xiaozhang666/p/11375512.html
Copyright © 2011-2022 走看看