Getting error while running simple javascript using node framework

前端 未结 8 1998
闹比i
闹比i 2021-01-30 06:25

As I run this piece of code using node a.js:

var sys = require(\'sys\');
sys.puts(\'Hello, World\');

I\'m getting the following as a

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 07:00

    you installed node, you want the package called nodejs

提交回复
热议问题