Only if you plan to compile your css/js. You can just write it directly in /public/css for example and then import it manually with a <link tag (same with js)
Aug 29, 2022
5
Level 8
Does blank Laravel 9 project need to use npm?
I created a blank Laravel 9 project without running npm install yet, and looks like everything was working fine. But of course that's just an empty project
Then I ran npm install and it installed a lot of node_modules. Do I have to install them? What are the default node_modules used for?
Level 102
@Ligonsker Yeah just vite, axios (for ajax requests), lodash for mutating data and postcss for compiling css.
1 like
Please or to participate in this conversation.