我把项目移到了另一台电脑上,运行npm install安装依赖后,除了webpack-dev-server出现错误外,其他都正常。
module.js:544
throw err;
^
Error: Cannot find module '../lib/polyfills'
at Function.Module._resolveFilename (module.js:542:15)
at Function.Module._load (module.js:472:25)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/project/node_modules/.bin/webpack-dev-server:6:1)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
它缺少什么?
webpack.config.js
文件吗? - oooyaya