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

前端 未结 7 1473
再見小時候
再見小時候 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条回答
  •  萌比男神i
    2021-01-02 12:02

    From my knowledge, currently there are 2 netbeans plugins for Node.js

    The one you're using http://plugins.netbeans.org/plugin/36653/nodejs

    (very simple plugin, it doesn't do much (I used it on an older version of netbeans), and I can't get it to work on netbeans 7.4)

    and a second one:

    NetBeans NodeJS Plugin https://github.com/timboudreau/nb-nodejs

    I want to suggest that you switch to the second one, because:

    • it actually works
    • it provides a "node project type"
    • more

提交回复
热议问题