为了账号安全,请及时绑定邮箱和手机立即绑定

webpack打包的时候出现这个错误

webpack打包的时候出现这个错误

C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:244                                throw err;                                ^Error: Cannot find module 'autoprefixer'    at Function.Module._resolveFilename (module.js:547:15)    at Function.Module._load (module.js:474:25)    at Module.require (module.js:596:17)    at require (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)    at Object.<anonymous> (E:\chengXInYouDao\webpack.config.js:4:22)    at Module._compile (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:178:30)    at Object.Module._extensions..js (module.js:663:10)    at Module.load (module.js:565:32)    at tryModuleLoad (module.js:505:12)    at Function.Module._load (module.js:497:3)    at Module.require (module.js:596:17)    at require (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)    at WEBPACK_OPTIONS (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\convert-argv.js:133:13)    at requireConfig (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\convert-argv.js:135:6)    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\convert-argv.js:142:17    at Array.forEach (<anonymous>)    at module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\convert-argv.js:140:15)    at yargs.parse (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:241:39)    at Object.parse (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\node_modules\yargs\yargs.js:552:18)    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:219:8    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack-cli\bin\cli.js:530:3)    at Module._compile (module.js:652:30)    at Object.Module._extensions..js (module.js:663:10)    at Module.load (module.js:565:32)    at tryModuleLoad (module.js:505:12)    at Function.Module._load (module.js:497:3)    at Module.require (module.js:596:17)    at require (internal/module.js:11:18)    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:80:2)    at Module._compile (module.js:652:30)
查看完整描述

7 回答

已采纳
?
Caballarii

TA贡献1123条经验 获得超629个赞

npm install autoprefixer --save

查看完整回答
1 反对 回复 2018-06-13
?
陈新会

TA贡献4条经验 获得超1个赞

以后遇到这种错误,就是看error那里提示什么,你这个一看就是缺少那个模块,直接安装就可以

查看完整回答
1 反对 回复 2018-06-14
?
慕数据5446725

TA贡献1条经验 获得超0个赞

https://www.imdb.com/list/ls509672356/?zjlv https://www.imdb.com/list/ls509672356/?VHDVJX https://www.imdb.com/list/ls509672356/?mode=desktop&ref_=b_zl_hfr https://www.imdb.com/list/ls509672356/?mode=desktop&ref_=lh_lh_tvp https://www.imdb.com/list/ls509672356/?mode=desktop&ref_=t_xpb_rdx https://www.imdb.com/list/ls509672356/?ref_=tt_rls_F https://m.imdb.com/list/ls509672356/?ref_=tt_rls_HDZNTX https://www.imdb.com/list/ls509672356/?mode=desktop&ref_=m_ft_txv https://www.imdb.com/list/ls509672356/?ref_=otl_7 https://m.imdb.com/list/ls509672356/?ref_=tt_rls_ZB https://www.imdb.com/list/title/ls509672356/ https://www.imdb.com/list/ls509672356/?mode=desktop https://www.imdb.com/list/ls509672356/?mode=desktop&ref_=m_ft_ljr https://m.imdb.com/list/ls509672356/?ref_=jx_rls_59 https://www.imdb.com/list/ls509672356/?mode=jnplrvb https://www.imdb.com/list/ls509672356/?mode=desktop&ref_=m_zf_dsk https://m.imdb.com/list/ls509672356/?ref_=tt_rls_bh https://www.imdb.com/list/ls509672194 https://www.imdb.com/list/ls509672194/ https://www.imdb.com/list/ls509672194?sbrvn https://www.imdb.com/list/ls509672194?uancoc https://www.imdb.com/list/ls509672194/?srrx https://www.imdb.com/list/ls509672194/?myzwpq https://www.imdb.com/list/ls509672194/?mode=desktop&ref_=s_eo_lbz https://www.imdb.com/list/ls509672194/?mode=desktop&ref_=gc_yv_jre https://www.imdb.com/list/ls509672194/?mode=desktop&ref_=n_grg_smw https://www.imdb.com/list/ls509672194/?ref_=tt_rls_t https://m.imdb.com/list/ls509672194/?ref_=tt_rls_zqsjtf https://www.imdb.com/list/ls509672194/?mode=desktop&ref_=m_ft_tor https://www.imdb.com/list/ls509672194/?ref_=otl_7 https://m.imdb.com/list/ls509672194/?ref_=tt_rls_ia https://www.imdb.com/list/title/ls509672194/ https://www.imdb.com/list/ls509672194/?mode=desktop https://www.imdb.com/list/ls509672194/?mode=desktop&ref_=m_ft_jdu https://m.imdb.com/list/ls509672194/?ref_=ch_rls_28 https://www.imdb.com/list/ls509672194/?mode=ssauobv https://www.imdb.com/list/ls509672194/?mode=desktop&ref_=m_bz_dsk https://m.imdb.com/list/ls509672194/?ref_=tt_rls_vl https://www.imdb.com/list/ls509672377 https://www.imdb.com/list/ls509672377/ https://www.imdb.com/list/ls509672377?j5Z9p https://www.imdb.com/list/ls509672377?vVvD7b https://www.imdb.com/list/ls509672377/?lfnf https://www.imdb.com/list/ls509672377/?jL3zx7 https://www.imdb.com/list/ls509672377/?mode=desktop&ref_=r_zp_hjr https://www.imdb.com/list/ls509672377/?mode=desktop&ref_=dn_zh_znx https://www.imdb.com/list/ls509672377/?mode=desktop&ref_=v_vzf_ffz https://www.imdb.com/list/ls509672377/?ref_=tt_rls_d https://m.imdb.com/list/ls509672377/?ref_=tt_rls_PrFVjp https://www.imdb.com/list/ls509672377/?mode=desktop&ref_=m_ft_ptx https://www.imdb.com/list/ls509672377/?ref_=otl_5 https://m.imdb.com/list/ls509672377/?ref_=tt_rls_1Z https://www.imdb.com/list/title/ls509672377/ https://www.imdb.com/list/ls509672377/?mode=desktop https://www.imdb.com/list/ls509672377/?mode=desktop&ref_=m_ft_vbx https://m.imdb.com/list/ls509672377/?ref_=pf_rls_99 https://www.imdb.com/list/ls509672377/?mode=lxddblr https://www.imdb.com/list/ls509672377/?mode=desktop&ref_=m_lh_dsk https://m.imdb.com/list/ls509672377/?ref_=tt_rls_zl https://www.imdb.com/list/ls509672314 https://www.imdb.com/list/ls509672314/ https://www.imdb.com/list/ls509672314?Kc8iU https://www.imdb.com/list/ls509672314?2YSAEY https://www.imdb.com/list/ls509672314/?esyu https://www.imdb.com/list/ls509672314/?yAQMu8 https://www.imdb.com/list/ls509672314/?mode=desktop&ref_=i_ke_aak https://www.imdb.com/list/ls509672314/?mode=desktop&ref_=ck_se_omq https://www.imdb.com/list/ls509672314/?mode=desktop&ref_=u_ewg_sii https://www.imdb.com/list/ls509672314/?ref_=tt_rls_I https://m.imdb.com/list/ls509672314/?ref_=tt_rls_i8oi2C https://www.imdb.com/list/ls509672314/?mode=desktop&ref_=m_ft_ius https://www.imdb.com/list/ls509672314/?ref_=otl_8 https://m.imdb.com/list/ls509672314/?ref_=tt_rls_2Y https://www.imdb.com/list/title/ls509672314/ https://www.imdb.com/list/ls509672314/?mode=desktop https://www.imdb.com/list/ls509672314/?mode=desktop&ref_=m_ft_sis https://m.imdb.com/list/ls509672314/?ref_=uk_rls_28 https://www.imdb.com/list/ls509672314/?mode=uyoyswu https://www.imdb.com/list/ls509672314/?mode=desktop&ref_=m_gu_dsk https://m.imdb.com/list/ls509672314/?ref_=tt_rls_ga https://www.imdb.com/list/ls509672333 https://www.imdb.com/list/ls509672333/ https://www.imdb.com/list/ls509672333?Z9XXX https://www.imdb.com/list/ls509672333?9r99jZ https://www.imdb.com/list/ls509672333/?rjpj https://www.imdb.com/list/ls509672333/?rN9JvR https://www.imdb.com/list/ls509672333/?mode=desktop&ref_=t_dh_ptf https://www.imdb.com/list/ls509672333/?mode=desktop&ref_=zj_lr_lth https://www.imdb.com/list/ls509672333/?mode=desktop&ref_=d_nhf_fpr https://www.imdb.com/list/ls509672333/?ref_=tt_rls_9 https://m.imdb.com/list/ls509672333/?ref_=tt_rls_hJHf9P https://www.imdb.com/list/ls509672333/?mode=desktop&ref_=m_ft_zrn https://www.imdb.com/list/ls509672333/?ref_=otl_9 https://m.imdb.com/list/ls509672333/?ref_=tt_rls_Zz https://www.imdb.com/list/title/ls509672333/ https://www.imdb.com/list/ls509672333/?mode=desktop https://www.imdb.com/list/ls509672333/?mode=desktop&ref_=m_ft_pjx https://m.imdb.com/list/ls509672333/?ref_=tn_rls_99 https://www.imdb.com/list/ls509672333/?mode=bzfjxhf https://www.imdb.com/list/ls509672333/?mode=desktop&ref_=m_vn_dsk https://m.imdb.com/list/ls509672333/?ref_=tt_rls_rp https://www.imdb.com/list/ls509672363 https://www.imdb.com/list/ls509672363/ https://www.imdb.com/list/ls509672363?61jUP https://www.imdb.com/list/ls509672363?6pKY1k https://www.imdb.com/list/ls509672363/?unji https://www.imdb.com/list/ls509672363/?eB1kEJ https://www.imdb.com/list/ls509672363/?mode=desktop&ref_=v_ms_biw https://www.imdb.com/list/ls509672363/?mode=desktop&ref_=hy_ni_zvu https://www.imdb.com/list/ls509672363/?mode=desktop&ref_=m_bdb_ppo https://www.imdb.com/list/ls509672363/?ref_=tt_rls_N https://m.imdb.com/list/ls509672363/?ref_=tt_rls_U6J6HE https://www.imdb.com/list/ls509672363/?mode=desktop&ref_=m_ft_kuc https://www.imdb.com/list/ls509672363/?ref_=otl_6 https://m.imdb.com/list/ls509672363/?ref_=tt_rls_P6 https://www.imdb.com/list/title/ls509672363/ https://www.imdb.com/list/ls509672363/?mode=desktop https://www.imdb.com/list/ls509672363/?mode=desktop&ref_=m_ft_wlk https://m.imdb.com/list/ls509672363/?ref_=vp_rls_16 https://www.imdb.com/list/ls509672363/?mode=zjbrrne https://www.imdb.com/list/ls509672363/?mode=desktop&ref_=m_mi_dsk https://m.imdb.com/list/ls509672363/?ref_=tt_rls_sf https://www.imdb.com/list/ls509672368 https://www.imdb.com/list/ls509672368/ https://www.imdb.com/list/ls509672368?pthzz https://www.imdb.com/list/ls509672368?rnnvrv https://www.imdb.com/list/ls509672368/?rbnh https://www.imdb.com/list/ls509672368/?xlfndp https://www.imdb.com/list/ls509672368/?mode=desktop&ref_=h_zx_rpr https://www.imdb.com/list/ls509672368/?mode=desktop&ref_=rh_nd_ztb https://www.imdb.com/list/ls509672368/?mode=desktop&ref_=t_pnb_xtf https://www.imdb.com/list/ls509672368/?ref_=tt_rls_h https://m.imdb.com/list/ls509672368/?ref_=tt_rls_ppzlfd https://www.imdb.com/list/ls509672368/?mode=desktop&ref_=m_ft_ntj https://www.imdb.com/list/ls509672368/?ref_=otl_5 https://m.imdb.com/list/ls509672368/?ref_=tt_rls_vv https://www.imdb.com/list/title/ls509672368/ https://www.imdb.com/list/ls509672368/?mode=desktop https://www.imdb.com/list/ls509672368/?mode=desktop&ref_=m_ft_bzr https://m.imdb.com/list/ls509672368/?ref_=xh_rls_73 https://www.imdb.com/list/ls509672368/?mode=rzrxndv https://www.imdb.com/list/ls509672368/?mode=desktop&ref_=m_xx_dsk https://m.imdb.com/list/ls509672368/?ref_=tt_rls_rx https://www.imdb.com/list/ls509672609 https://www.imdb.com/list/ls509672609/ https://www.imdb.com/list/ls509672609?0mgka https://www.imdb.com/list/ls509672609?Ok0000 https://www.imdb.com/list/ls509672609/?egwe https://www.imdb.com/list/ls509672609/?0yi00m https://www.imdb.com/list/ls509672609/?mode=desktop&ref_=u_yk_yke https://www.imdb.com/list/ls509672609/?mode=desktop&ref_=cq_uk_eey https://www.imdb.com/list/ls509672609/?mode=desktop&ref_=m_gqo_iam https://www.imdb.com/list/ls509672609/?ref_=tt_rls_q https://m.imdb.com/list/ls509672609/?ref_=tt_rls_00gaQM https://www.imdb.com/list/ls509672609/?mode=desktop&ref_=m_ft_ooi https://www.imdb.com/list/ls509672609/?ref_=otl_0 https://m.imdb.com/list/ls509672609/?ref_=tt_rls_iq https://www.imdb.com/list/title/ls509672609/ https://www.imdb.com/list/ls509672609/?mode=desktop

查看完整回答
反对 回复 2021-10-12
?
qq_醉落夕风_0

TA贡献25条经验 获得超1个赞

看报错日志信息,这是是找不到这个东西,npm install找不到的包就行

查看完整回答
反对 回复 2019-10-11
?
慕莱坞2556587

TA贡献1条经验 获得超0个赞

可以的 大拇指

查看完整回答
反对 回复 2019-09-02
?
迁就LOSE

TA贡献29条经验 获得超34个赞

Cannot find module 'autoprefixer'

查看完整回答
反对 回复 2018-06-13
  • 7 回答
  • 0 关注
  • 14040 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信