How to run the node.js file in net beans?

前端 未结 7 1500
再見小時候
再見小時候 2021-01-02 11:19

In net beans i have installed node.js pulgin.But my sample node program is not working.Im getting error. This is my sample code

    var http = require(\"http         


        
7条回答
  •  灰色年华
    2021-01-02 12:11

    In NetBeans go to Tools >> Options >> Miscellaneous >> Node.js

    and change default command to:

    node ${workingdir}\${selectedfile}

    You should also add lessc file path to your netbeans. In netbeans go to:

    Tools >> Options >> Miscellaneous >> CSS Preprossessors

    And add path to your node lessc file path.

    It will be located in C:\Users\{your user name}\AppData\Roaming\npm\lessc.cmd

    If it is not found then you have to install it by command prompt by following code:

    npm install less -g

提交回复
热议问题