npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! vuewebpack@1.0.0 build: `cross-env NODE_ENV=production webpack --config webpack.config.js --mode development` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the vuewebpack@1.0.0 build 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/dear/.npm/_logs/2018-04-15T01_05_00_017Z-debug.log
看了下好像只有我有这个问题?
报错是因为 也就是[contentHash:8]这报的错把它改成[name]或者[id]都可以
检查package.json文件,build配置多了一段是什么意思?
看是不是你的端口号被其他应用占用了。
具体解决方法可参照该文章: https://blog.csdn.net/u014182411/article/details/78292111