问答详情
源自:1-2 Webpack 安装和命令行

为什么使用老师给的命令打包一直报错

ERROR in Entry module not found: Error: Can't resolve './src' in 'D:\我的项目\webpack学习\webpack-test'

npm ERR! code ELIFECYCLE

npm ERR! errno 2

npm ERR! webpack-test@1.0.0 dev: `webpack --mode development`

npm ERR! Exit status 2

npm ERR!

npm ERR! Failed at the webpack-test@1.0.0 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!     C:\Users\yi.lingyu\AppData\Roaming\npm-cache\_logs\2018-12-24T08_22_02_337Z-debug.log


提问者:laura101 2018-12-24 16:26

个回答

  • qq__9982
    2018-12-24 16:52:11
    已采纳

    你试试吧中文路径改成英文的试试