- vue项目 npm run dev 报错
WAIT Compiling...16:36:21
95% emittingFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node_module_register
2: v8::internal::Factory::NewRawTwoByteString
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! easyviews@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the easyviews@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! F:Program Files
odejs
ode_cache\_logs2019-04-03T08_36_25_025Z-debug.log
- webpack编译报错提示内存溢出:
- window系统下解决办法:
在 ode_modules.binwebpack-dev-server.cmd文件中添加 "--max_old_space_size=2048" //2048的单位为M,表示node最大占用内存数值,可以根据实际情况自行调整数值
- 参考链接