cd-dongzi / vue-project

Vue实战项目
524 stars 342 forks source link

启动项目的时候,报错了 Cannot find module './manifest.json' #4

Open sai111 opened 6 years ago

sai111 commented 6 years ago

Error: Cannot find module './manifest.json' at Function.Module._resolveFilename (module.js:485:15) at Function.Module._load (module.js:437:25) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (F:\shroom\vue-project\vue-toutiao\build\webpack.base.conf.js:87:23) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! toutiao@1.0.0 dev: webpack-dev-server --config build/webpack.dev.conf.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the toutiao@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******\AppData\Roaming\npm-cache_logs\2018-05-11T05_25_25_546Z-debug.log

bewhatyouare commented 6 years ago

先执行webpack --config ./build/webpack.dll.conf.js生成manifest.json

AllenChenCD commented 6 years ago

还是不行,启动报错

liuyfCN commented 6 years ago

cnpm run dll

lcsone commented 6 years ago

VUE管理系统@ 3.1.1 DEV D:\ITDRAM\Web2\No.\0725Tay\VUE管理系统主控 WebPultDever服务器---------------------------------------------------------------------------------------------------------------------------------------- “WebPACK DEV服务器” 最后一步。 NPM错误!代码周期 NPM错误!埃尔诺1 NPM错误!VUE管理系统@ 3.1.1 DEV:'WebPultDever服务器-在线-进度-CONFIG/WebPACK.DEV.CONF.JS NPM错误!退出状态1 NPM错误! NPM错误!在VUE管理系统@ 3.1.1 DEV脚本中失败。 NPM错误!这可能不是NPM的问题。上面可能还有额外的日志记录输出。 NPM警告本地包。JSON存在,但NoDEN1模块丢失,您是否打算安装? NPM错误!此运行的完整日志可以在: NPM错误!C:\用户\Adabd\AppDAT\ROMAM\NPM Cache \xLog\2018-0906T06Y1111YOX4Y-44Z调试日志

lcsone commented 6 years ago

这是什么错啊

ok406lhq commented 5 years ago

我也一样报这个错了

ok406lhq commented 5 years ago

我知道怎么做了

ok406lhq commented 5 years ago

这是什么错啊

你只要执行以下这个命令就可以了 npm run dll

niejun123 commented 4 years ago

cnpm Run dll

liukaibaby commented 4 years ago

我也同样的错误 什么情况 怎么解决 用了 npm run dll cnpm Run dll都没用