1
votes
  • node verison:v12.4.0
  • npm verison:6.13.4
  • laravel:5.8

Build failed with error code: 1

npm WARN The package popper.js is included as both a dev and production depende cy. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fs vents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents 1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64" )

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] postinstall: node scripts/build.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] postinstall script.

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

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

npm ERR! C:\Users\CLOUD TIMON\AppData\Roaming\npm-cache_logs\2019-12-31T05 00_45_654Z-debug.log

1

1 Answers

0
votes

first try to clean npm cache with :

npm cache clean --force

then delete node_modules folder completely, then again run npm install. that should solve the problem.