canvas-draw@1.0.0 start E:\workplace\canvas-draw
node build/dev-server.js
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'enhanced-resolve/lib/AliasPlugin’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (E:\workplace\canvas-draw\node_modules\webpack\lib\dependencies\AMDPlugin.js:21:21)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas-draw@1.0.0 start: node build/dev-server.js
npm ERR! Exit status 1
E:\workplace\canvas-draw>npm run start
项目运行提示找不到enhanced-resolve/lib/AliasPlugin,项目npm install下载大部分包。网络延迟的可能部分包下载超时。根据运行提示信息,下载指定包。所以需要重新下载enhanced-resolve即可
然后重新npm run dev就可以了,
npm install enhanced-resolve