How to change velocity color schemes according
-
I am getting the following error after running npm run watch from inside the velocity package.
I need help.
webpack-cli] Error: Cannot find module 'colors'
Require stack:- /Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/webpack.mix.js
- /Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/laravel-mix/setup/webpack.config.js
- /Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack-cli/lib/webpack-cli.js
- /Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack-cli/lib/bootstrap.js
- /Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack-cli/bin/cli.js
- /Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack/bin/webpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/webpack.mix.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/webpack.mix.js',
'/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/laravel-mix/setup/webpack.config.js',
'/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack-cli/lib/webpack-cli.js',
'/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack-cli/lib/bootstrap.js',
'/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack-cli/bin/cli.js',
'/Applications/XAMPP/xamppfiles/htdocs/urbanmall/packages/Webkul/Velocity/node_modules/webpack/bin/webpack.js'
]
}
-
Hi there,
For this you need to done changes on code, and after complete please run npm run watch after installing the npm inside the velocity package. -
@KingDavid Kindly install colors inside Velocity folder.
npm i colorsAnd run
npm run watch or prod again.