前面步骤一摸一样版本号也一波一样执行webpack打包也没有任何问题,webpack-dev-server版本也和视频一摸一样,但在执行的时候报错:
C:\Users\AppData\Roaming\npm\node_modules\webpack-dev-server\node_modules\sockjs\node_modules\uuid\dist\stringify.js:22
function stringify(arr, offset = 0) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\AppData\Roaming\npm\node_modules\webpack-dev-server\node_modules\sockjs\node_modules\uuid\dist\v1.js:10:41)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)