在后台管理系统中的几个问题。
来源:11-2 后台管理系统功能演示
To_The_Moon
2017-12-14
按照老师给的代码里的package.json一个个下载包搭建环境。唯独这个安装不了报错不知道如何解决。
使用webpack来打包后台管理的代码报错。
3回答
-
还是有版本不对的插件,比如react-router课程里用的是2.x,把课程里的package.json文件内容换过来初始化一下试试
022017-12-16 -
To_The_Moon
提问者
2017-12-14
C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\extract-text-webpack-plugin\dist\index.js:188
chunk.sortModules();
^
TypeError: chunk.sortModules is not a function
at C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\extract-text-webpack-plugin\dist\index.js:188:19
at C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\async\dist\async.js:3096:16
at eachOfArrayLike (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\async\dist\async.js:1055:9)
at eachOf (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\async\dist\async.js:1103:5)
at Object.eachLimit (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\async\dist\async.js:3158:5)
at Compilation.<anonymous> (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\extract-text-webpack-plugin\dist\index.js:184:27)
at Compilation.applyPluginsAsyncSeries (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\tapable\lib\Tapable.js:206:13)
at Compilation.seal (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\webpack\lib\Compilation.js:579:8)
at C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\webpack\lib\Compiler.js:493:16
at C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\tapable\lib\Tapable.js:289:11
at _addModuleChain (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\webpack\lib\Compilation.js:481:11)
at processModuleDependencies.err (C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\webpack\lib\Compilation.js:452:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
00 -
To_The_Moon
提问者
2017-12-14
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none was installed.
npm WARN react-router@4.2.0 requires a peer of react@>=15 but none was installed.
npm WARN admin-fe@1.0.0 No repository field.
npm ERR! path C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\.staging\sb-admin-2-ba3d4c10\vendor\font-awesome\fonts\fontawesome-webfont.woff
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall utime
npm ERR! enoent ENOENT: no such file or directory, utime 'C:\Users\Anchan\GitHub\happymmall\admin-fe\node_modules\.staging\sb-admin-2-ba3d4c10\vendor\font-awesome\fonts\fontawesome-webfont.woff'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Anchan\AppData\Roaming\npm-cache\_logs\2017-12-14T15_24_08_672Z-debug.log
00
相似问题