npm run dev跑不动~!提示缺少loader
umphp opened this issue · 5 comments
error in ./node_modules/_mpvue-entry@0.4.1@mpvue-entry/dist/QuanziDetail.js
Module parse failed: Unexpected token (11:2)
You may need an appropriate loader to handle this file type.
用 npm 安装,cnpm 晚点我再测试下
npm 测试过了,一样报这错误。
$ npm run dev
ithome-lite@0.0.1 dev F:\ex\ithome
node build/dev-server.js
ERROR Failed to compile with 6 errors 09:22:4
error in ./node_modules/mpvue-entry/dist/NewsList.js
Module build failed: Error:
Vue packages version mismatch:
- vue@1.0.11
- mpvue-template-compiler@1.0.10
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using mpvue-loader, re-installing them should bump mpvue-template-compiler to t
e latest.
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-template-compiler\index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-loader\lib\parser.js:1:78)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
error in ./node_modules/mpvue-entry/dist/NewsDetail.js
Module build failed: Error:
Vue packages version mismatch:
- vue@1.0.11
- mpvue-template-compiler@1.0.10
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using mpvue-loader, re-installing them should bump mpvue-template-compiler to t
e latest.
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-template-compiler\index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-loader\lib\parser.js:1:78)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
error in ./node_modules/mpvue-entry/dist/NewsComment.js
Module build failed: Error:
Vue packages version mismatch:
- vue@1.0.11
- mpvue-template-compiler@1.0.10
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using mpvue-loader, re-installing them should bump mpvue-template-compiler to t
e latest.
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-template-compiler\index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-loader\lib\parser.js:1:78)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
error in ./node_modules/mpvue-entry/dist/QuanziList.js
Module build failed: Error:
Vue packages version mismatch:
- vue@1.0.11
- mpvue-template-compiler@1.0.10
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using mpvue-loader, re-installing them should bump mpvue-template-compiler to t
e latest.
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-template-compiler\index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-loader\lib\parser.js:1:78)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
error in ./node_modules/mpvue-entry/dist/QuanziDetail.js
Module build failed: Error:
Vue packages version mismatch:
- vue@1.0.11
- mpvue-template-compiler@1.0.10
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using mpvue-loader, re-installing them should bump mpvue-template-compiler to t
e latest.
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-template-compiler\index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-loader\lib\parser.js:1:78)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
error in ./src/main.js
Module build failed: Error:
Vue packages version mismatch:
- vue@1.0.11
- mpvue-template-compiler@1.0.10
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using mpvue-loader, re-installing them should bump mpvue-template-compiler to t
e latest.
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-template-compiler\index.js:8:9)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (F:\ex\ithome\node_modules\mpvue-loader\lib\parser.js:1:78)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
错误信息你自己大概也看一下吧。。
重新 clone 下,应该没这些问题了