• npm start报错


    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! gshop-client_final@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 gshop-client_final@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!     /Users/yeyu/.npm/_logs/2020-06-07T05_15_54_124Z-debug.log
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! gshop-client_final@1.0.0 start: `npm run dev`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the gshop-client_final@1.0.0 start 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!     /Users/yeyu/.npm/_logs/2020-06-07T05_15_54_157Z-debug.log

    可能是因为另一个项目把一些包全局更新了,到导致了这个项目出现资源包版本不对的这个问题

    解决方法:

    把这个项目的node包(node_modules)删除再 npm install

    随后npm start就可以了

  • 相关阅读:
    2017.4.18下午
    2017.4.18上午
    2017.4.17上午
    2017.4.14下午
    2017.4.14上午
    4.17下午
    4.17上午
    4.13下午
    4.13上午
    4.10上午
  • 原文地址:https://www.cnblogs.com/weiweiyeyu/p/13060310.html
Copyright © 2020-2023  润新知