I am trying to learn Laravel.
I installed it and created a project.
Using Netbeans I see an error mark on the project name that says:
Missing npm modules.
I installed node.js, clicked resolve, pointed the paths to node.exe and npm.cmd
I still see the error, NetBeans says:
npm(myproject) Running.
The error is still there but now when I click Resolve
, the sentence
“Missing npm modules” is greyed out, and the Resolve
button does nothing.
Is there anything else I should do?
Do I need to do all of this to develop with Laravel?
Can I just continue developing with this error?
Regarding the npm packages, you can add them to theme directory at the resources/views/theme/tailwindcss and then use them in your app. js file as a standard Laravel app.
Nowadays npm containing general tools for work with various front-end tasks. So, it's very useful to grab some packages from it. In case of laravel, there is two utilities, that it uses: gulp - streaming building tool for concatenating, minifing your css,js code.
It is not required to install NPM for a node project as any javascript code can be executed by just typing “node myprogram. js”, but it is highly unpractical that you will be writing all code from scratch yourself, so you will be installing packages and that's where NPM comes in. It is a node package manager.
No you don't. Node packages are required for asset management, which you can actually do without, or simply install your own set of tools. For your case, simply run
npm install
Make sure you have node installed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With