devjin0617 / vue2-admin-lte

:bar_chart: adminLTE to vuejs v2.x converting project
https://devjin0617.github.io/vue2-admin-lte
MIT License
1.07k stars 323 forks source link

Can't npm run dev? #70

Closed smarttang closed 3 years ago

smarttang commented 4 years ago

ERROR Failed to compile with 1 errors 下午6:48:36

Module build failed: Error: Cannot find module 'eslint/lib/formatters/stylish' Require stack:

You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use / eslint-disable / to ignore all warnings in a file.

Listening at http://localhost:8080

relesssar commented 3 years ago

me too, installed with --force and npm run dev fail

$ npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vue2-admin-lte@0.4.4
npm ERR! Found: sinon@1.17.7
npm ERR! node_modules/sinon
npm ERR!   dev sinon@"^1.17.7" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer sinon@">=2.1.0 <5" from karma-sinon-chai@1.3.4
npm ERR! node_modules/karma-sinon-chai
npm ERR!   dev karma-sinon-chai@"^1.2.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home//.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home//.npm/_logs/2021-04-22T03_46_09_826Z-debug.log

$ npm install --legacy-peer-deps