[webpack-cli] You need to install 'webpack-dev-server' for running 'webpack serve'.
TypeError: Cannot read property 'getArguments' of undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! renren-fast-vue@1.2.2 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the renren-fast-vue@1.2.2 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! D:\app\Nodejs\node-v12.0.0-win-x64\node_cache\_logs\2024-02-06T06_43_06_656Z-debug.log
原因:node的版本不对,本来是V12.0.0,后面改成成12.10.0之后成功启动。
更换版本后
步骤:重新install
npm install
重新启动:
npm run dev