webpack-dev-server error while running npm run serve (windows 10)

Error:

 PS C:\Users\kisho\Downloads\tui.calendar-master> npm run serve

> tui-calendar@1.12.14 serve C:\Users\kisho\Downloads\tui.calendar-master

> webpack-dev-server --mode development --progress --inline --hot        

'webpack-dev-server' is not recognized as an internal or external command,

operable program or batch file.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! tui-calendar@1.12.14 serve: `webpack-dev-server --mode development --progress --inline --hot`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the tui-calendar@1.12.14 serve script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\kisho\AppData\Roaming\npm-cache\_logs\2020-09-24T10_52_24_562Z-debug.log

PS C:\Users\kisho\Downloads\tui.calendar-master> npm test

> tui-calendar@1.12.14 test C:\Users\kisho\Downloads\tui.calendar-master

> karma start --no-single-run

'karma' is not recognized as an internal or external command,

operable program or batch file.

npm ERR! Test failed.  See above for more details.


log deatils:

20 error code ELIFECYCLE

21 error errno 1

22 error tui-calendar@1.12.14 serve: `webpack-dev-server --mode development --progress --inline --hot`

22 error Exit status 1

23 error Failed at the tui-calendar@1.12.14 serve script.

23 error This is probably not a problem with npm. There is likely additional logging output above.

24 verbose exit [ 1, true ]


Solution:

install karma -> 

npm install -g karma-cli

npm install karma --save-dev

npm test 

------------delete the package-lock.json-----------------

npm install --no-optional --no-shrinkwrap --no-package-lock

---------------------------------

  • Edge 85.0.564.51 (Windows 10) is idle



Comments

Popular Posts