简体   繁体   English

我可以开发一个新的Laravel项目,在Netbeans中显示“缺少npm模块”警告吗?

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

I am trying to learn Laravel. 我正在努力学习Laravel。

I installed it and created a project. 我安装它并创建了一个项目。

Using Netbeans I see an error mark on the project name that says: 使用Netbeans我在项目名称上看到一个错误标记,上面写着:

Missing npm modules. 缺少npm模块。

I installed node.js, clicked resolve, pointed the paths to node.exe and npm.cmd 我安装了node.js,点击了resolve,将路径指向node.exe和npm.cmd

I still see the error, NetBeans says: 我仍然看到错误,NetBeans说:

npm(myproject) Running. npm(myproject)正在运行。

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. 错误仍然存​​在,但现在当我单击Resolve ,句子“Missing npm modules”显示为灰色, Resolve按钮不执行任何操作。

Is there anything else I should do? 还有什么我应该做的吗?

Do I need to do all of this to develop with Laravel? 我需要用Laravel来完成所有这些吗?

Can I just continue developing with this error? 我可以继续使用此错误进行开发吗?

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 确保已安装节点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM