Rival's avatar
Level 1

Error Install Tailwindcss in laravel

i have error in installing tailwind css

here is my error

PS C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api> npm run dev

@ dev C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api npm run development

@ development C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

The system cannot find the path specified. events.js:292 throw er; // Unhandled 'error' event ^

Error: spawn node_modules\webpack\bin\webpack.js ENOENT at notFoundError (C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26) at verifyENOENT (C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16) at ChildProcess.cp.emit (C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) Emitted 'error' event on ChildProcess instance at: at ChildProcess.cp.emit (C:\xampp_7.4.2\htdocs\laravelproject\laravel-movie-api\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:30:37) at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) { code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn node_modules\webpack\bin\webpack.js', path: 'node_modules\webpack\bin\webpack.js', spawnargs: [ '--progress', '--hide-modules', '--config=node_modules/laravel-mix/setup/webpack.config.js' ] }

// This like error when it appearing like red text npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-08-08T11_57_31_983Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: npm run development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-08-08T11_57_32_048Z-debug.log

i already try this solution

  • uninstall node js
  • running terminal with npm install cross-env

if you have exprience error like me please i need help. sorry for interrupt your time with a bigger of i say please help !!. Thank you.

0 likes
6 replies
bobbybouwmann's avatar
Level 88

Have you tried doing a full reset?

rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
npm install
1 like
Rival's avatar
Level 1

is it run one by one ? or run all in terminal. i'll try.

Rival's avatar
Level 1

is it run in vs code terminal or cmd in C system32 ?

bobbybouwmann's avatar

You have to run each line in any terminal. As long as you're in the correct path. The root of your project.

Rival's avatar
Level 1

is it rm change with our name folder ? because it appear " Remove-Item : A parameter cannot be found that matches parameter name 'rf'." sorry if im still confuse.

bobbybouwmann's avatar

Aah, you're on windows. You need to Google for the same command. But basically removing the files in the directory manually is god enough as well ;)

Please or to participate in this conversation.