Laravel Spark does not correctly insert css

I play with Spark to find out how to use it. I installed a new installation under Homestead in accordance with the installation instructions. The css link generated for the page on the / route is

 <link href="http://spark-test.local:8000/css/app.css" rel="stylesheet">

No css generated. So the homepage is torn. Can someone help me track the problem?

Refresh
Here are the warnings I get when starting NPM:

npm WARN package.json laravel-spark@1.0.12 No README data
npm WARN unmet dependency /home/vagrant/projects/spark-test/node_modules/laravel-elixir/node_modules/browserify requires   glob@'^4.0.5' but will load
npm WARN unmet dependency /home/vagrant/projects/spark-test/node_modules/laravel-elixir/node_modules/glob,
npm WARN unmet dependency which is version 5.0.14
npm WARN unmet dependency /home/vagrant/projects/spark-test/node_modules/laravel-elixir/node_modules/gulp-phpspec requires gulp-util@'~2.2.14' but will load
npm WARN unmet dependency /home/vagrant/projects/spark-test/node_modules/laravel-elixir/node_modules/gulp-util,
npm WARN unmet dependency which is version 3.0.6

And gulp errors:

 module.js:338
throw err;
      ^
Error: Cannot find module 'module-deps'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/vagrant/projects/spark-test/node_modules/laravel-elixir/node_modules/browserify/index.js:1:75)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)

Update 2
After what Aditya posted in the answer below, everything worked. I post here so that others can see the resolution of my NPM dependency errors using gulp. I finally missed the dependency errors by running

 NPM update 

What violated SASS in my project. I fixed this problem by running

 NPM rebuild node-sass

I hope this helps someone

+4
1

, . :

  • php artisan migrate. .
  • npm install sudo npm install, , Bootstrap vue.js
  • : gulp. , sudo npm install -g gulp
+5

Source: https://habr.com/ru/post/1608792/


All Articles