Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I develop a new Laravel project displaying a 'Missing npm modules' warning in Netbeans?

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?

like image 655
Sigal Zahavi Avatar asked May 26 '16 12:05

Sigal Zahavi


People also ask

Can I use npm with Laravel?

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.

Why npm is required for Laravel?

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.

Do I need to install npm for every project?

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.


1 Answers

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

like image 73
Murwa Avatar answered Oct 22 '22 06:10

Murwa