问答详情
源自:-

艾特老师这个项目为什么npm build不成功?

老师这个课程找做了一遍,但是想build一下看线上效果,却报错不能编译

Creating an optimized production build...

Failed to compile.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! my-order@0.1.0 build: `react-scripts build`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the my-order@0.1.0 build 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\cs\AppData\Roaming\npm-cache\_logs\2019-02-17T14_18_09_370Z-debug.log

不知道怎么办好

提问者:阿德里安布隆迪 2019-02-17 23:29

个回答

  • weixin_慕后端7240369
    2019-12-10 13:09:14

    艾特老师来告诉你;上面可能有额外的日志输出。 Npm ! 完整的运行日志可以在: npm err 中找到!