Skip to main content

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 from this blog

how to solve: nginx Permission denied problem

  *71 connect() to unix:/run/php/php7.4-fpm.sock failed (13: Permission denied) while connecting to upstream, client: <ip here>, server:  <ip here>, request: "GET /iomad/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "<ip here>" just give permission  to  php7.4-fpm.sock i solved it by giving sudo chmod -R 0777     php7.4-fpm.sock Also i tried to open the file but there was again permission denied issue  i visited my website and it was working

Indian HAL Tejas | Touch The Sky With Glory | ShotOnNikonD3500

Indian HAL Tejas | Touch The Sky With Glory | ShotOnNikonD3500

installing Laravel v8.0.1 in Windows 10 Pro x64bit

 Using WAMP for  php - 7.4.10 maraiadb - 10 apache - 2.4 php -i | grep -i ssl  to check registration stream socket transports grep -R "search your word" use this cmd to search in linux directory composer diagnose to see the status of composer check with this link also:  https://github.com/composer/composer/issues/4388 Failed to download tijsverkoyen/css-to-inline-styles from dist: The "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/b43b05cf43c1b6d849478965062b6ef73e223bb5" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.     failed to open stream: php_network_getaddresses: getaddrinfo  failed: No such host is known.  Now trying to download from source https://github.com/tijsverkoyen/CssToInlineStyles   install the  composer require tijsverkoyen/css-to-inline-styles ======================================================================= These are final steps: ...