美文网首页
infoq-vue-example项目运行npm run dev

infoq-vue-example项目运行npm run dev

作者: AR7_ | 来源:发表于2020-11-16 11:20 被阅读0次

    问题描述:

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! infoq-example@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 infoq-example@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:
    

    在运行infoq-vue-example项目时,安装好依赖后,运行npm run dev一直提示报错,显示上面的错误信息。

    解决方案:

    当前我电脑安装的版本是2.9.6,这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好:

    cnpm uninstall webpack-dev-server
    cnpm install webpack-dev-server@2.9.1
    cnpm run dev
    

    参考博文

    相关文章

      网友评论

          本文标题:infoq-vue-example项目运行npm run dev

          本文链接:https://www.haomeiwen.com/subject/akvabktx.html