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

来源:1-2 Webpack 安装和命令行

laura101

2018-12-24 16:26

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


写回答 关注

1回答

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

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

webpack深入与实战

webpack实战教程,用真实项目带你探索 webpack 强大的功能

86561 学习 · 721 问题

查看课程

相似问题